My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SetupGuide  

How to download twitalker and get it running

Introduction

Step 1: Get the code 获取源码

Using svn checkout the latest release of twitalker.Instructions are available on the Source checkout page for how to download a copy of the code or download the latest release zipped up copies of the source on the Downloads tab.Be aware that those source might be out of date.

用svn checkout 获取最新版本的TwiTalker源码: http://twitalker.googlecode.com/svn/trunk/

或者在下载页面下载压缩后的源码,需要注意的是用这种方法下载的源码无法保证是最新版本。





Step 2: Get your language 选择语言版本

There are two language folders inside the source files(cn-version and en-version).Choose one and continue to Step 3.

(PS.You can only pick one language folders and upload to your gae app after configuring it.)

下载的源码分有cn-version和en-version两个文件夹,这是 TwiTalker 两个语言(cn为简体中文,en为英文)版本,选择你需要安装的版本文件夹,并进行下一步修改.

记住只能选择一个版本,千万不要把两个目录都传上自己的gae。





Step 3: Configure TwiTalker 配置TwiTalker

  • Create an application in GAE and Twitter.

    分别在GAE和Twitter创建一个应用





  • Change the folder name you have chosen in Step 2 and the first line in app.yaml file inside the folder to match your Application Identifier .

    将你在Step 2选择的文件夹名和里面app.yaml文件第一行的application名称改为你创建的那个应用的Application Identifier。





  • Be aware to change the callback setting to this url on your twitter app: http://your gae app id.appspot.com/oauth.

    在Twitter的settting页面创建你自己的应用,并将应用的callback设置修改为http://你的Application Identifier名称.appspot.com/oauth





  • Open and configure the config.py inside the folder you have chosen in Step 2.

    打开文件夹里的config.py文件,按要求修改其中参数。
# Change the OAUTH_KEY below to the match the consumer key of your twitter app.
# 将你在twitter创建的应用的consumer key替换到下面OAUTH_KEY参数
OAUTH_KEY = '2AjKMgZby3HPfzQDGxccAg'

# Change the OAUTH_SECRET below to the match the consumer secret of your twitter app.
# 将你在twitter创建的应用的consumer secret替换到下面OAUTH_SECRET参数
OAUTH_SECRET = 'd27Cp1hu2XsxSoyV6L6EGsaYdSkGAghgVNjsVC5Js'

# Be aware to change the callback setting to this url on your twitter app: http://your gae app id.appspot.com/oauth
# 注意要在Twitter应用的设置里把callback参数设置为 http://你的gae app id名称.appspot.com/oauth

# =====================   gae  settting      ======================

# Change the APP_ID account below to your GAE Application Identifier.
# 机器人的地址,将下面参数改为你在GAE创建的应用ID,
APP_ID='itwitalker'

# Initing the bot account.Do not Change this expression
# 不要修改这个参数
ACCOUNT = APP_ID+'@appspot.com'





  • Upload the folder you have chosen in Step 2 to your gae.Done.

    将Step 2选择的文件夹上传到你的GAE上,架设完毕。
Comment by lium...@gmail.com, Mar 19, 2010

一定要放在GAE上吗?能不能放在自己的主机上?

Comment by project member GRAYSEA...@gmail.com, Mar 19, 2010

@liumiao 嗯,因为一般主机无支持gtalk机器人所依赖的xmpp功能,只有GAE支持这个,所以只能在GAE上架设

Comment by lium...@gmail.com, Mar 30, 2010

谢谢!

Comment by lza.Ch...@gmail.com, Apr 5, 2010

谢谢程序开发者。 这个是我用过的最好用的Gtalk机器人了

Comment by cnpe...@gmail.com, Apr 9, 2010

如果GAE被墙,是否不影响已绑定用户?

Comment by project member GRAYSEA...@gmail.com, Apr 10, 2010

@cnpengc 只要gtalk通讯所依靠的xmpp协议不被干扰(目前还从未出现过这种情况),GAE是否被墙对TwiTalker?没有任何影响

Comment by crisiel...@gmail.com, Jun 5, 2010

谢谢,请问源代码什么时候会更新到2.0.2? 指定ID的timeline功能很值得更新

Comment by xya...@gmail.com, Jul 22, 2010

贊 自己搭了一個在c-est-la-vie.appspot

Comment by icyomik, Dec 5, 2010

感谢开发者,纯灌水哈~

Comment by you...@gmail.com, Dec 7, 2010

good job, good guy you are !

Comment by jason5...@gmail.com, Dec 12, 2010

请问如何限制用户数量?我架设了别人也是可以使用的把?

Comment by gugeb...@gmail.com, Dec 21, 2010

谢谢开发出这么好的程序,我想在GAE上写一个把TWEETS定时通过文本电子邮件发到GMAIL的程序,不知是否容易实现?

Comment by project member GRAYSEA...@gmail.com, Feb 25, 2011

@jason52lh 一个TwiTalker?能容纳250个用户,暂不能限制数量,别人可使用。TwiTalker?开源是为了让工具得到最大的共享让更多用户使用,希望自主搭建的也能有这个精神,这也算是对开源版本的个小小limit:)

Comment by project member GRAYSEA...@gmail.com, Feb 25, 2011

@gugebeta 不难实现,支持你的工作:)

Comment by cynbeiji...@gmail.com, Feb 26, 2011

上传失败,试验几种方法了,都不行。

Comment by cynbeiji...@gmail.com, Mar 7, 2011

终于上传成功了,刚开始能发推不能收推,过了大概一天就正常了,不知道怎么回事,真的感谢开发者,功能太强大了,简直太棒了!

Comment by aol...@gmail.com, Mar 19, 2011

我上传时总是出现以下错误,有没有可以指点下: Traceback (most recent call last):

File "C:\Program Files\Google\google_appengine\appcfg.py", line 71, in <module>
run_file(file, globals())
File "C:\Program Files\Google\google_appengine\appcfg.py", line 67, in run_file
execfile(script_path, globals)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3134, in <module>
main(sys.argv)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3125, in main
result = AppCfgApp?(argv).Run()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2039, in Run
self.action(self)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2978, in
call
return method()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2398, in Update
self.UpdateVersion?(rpcserver, basepath, appyaml)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2387, in UpdateVersion?
lambda path: open(os.path.join(basepath, path), 'rb'))
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1795, in DoUpload?
missing_files = self.Begin()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1546, in Begin
self.Send('/api/appversion/create', payload=self.config.ToYAML())
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 1503, in Send
return self.rpcserver.Send(url, payload=payload, self.params)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 358, in Send
self.Authenticate()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 411, in Authenticate
super(HttpRpcServer?, self).Authenticate()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 270, in Authenticate
auth_token = self.GetAuthToken?(credentials0?, credentials1?)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 210, in GetAuthToken?
response = self.opener.open(req)
File "C:\Python27\lib\urllib2.py", line 391, in open
response = self.open(req, data)
File "C:\Python27\lib\urllib2.py", line 409, in open
'open', req)
File "C:\Python27\lib\urllib2.py", line 369, in call_chain
result = func(args)
File "C:\Python27\lib\urllib2.py", line 1181, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files\Google\google_appengine\lib\fancy_urllib\fancy_urllib\
init.py", line 367, in do_open
raise url_error
urllib2.URLError: <urlopen error 10060? > 2011-03-20 10:25:50 (Process exited with code 1)

You can close this window now.

Comment by cynbeiji...@gmail.com, Mar 27, 2011

楼上的问题好解决,使用加密上传命令即可。复制以下内容,另存为.bat 运行即可。(其中D:\Download\3.18是你要上传文件的路径) appcfg.py --insecure update D:\Download\3.18 echo. & pause

Comment by cynbeiji...@gmail.com, Mar 27, 2011

我想使用 搜索功能,不知道具体如何设置,“想使用搜索功能必须在apptwitter.py设置自架的搜索api地址”请明示,感激万分。

Comment by newlon...@gmail.com, Apr 30, 2011

谢谢作者的无私奉献, 我刚见了个 很不错 。。可是应该怎么查看使用的人数啊

Comment by buaa5...@gmail.com, May 11, 2011

我的在twitter里设置callback 网页,为甚提醒没有这个网页,无法设置呢?谁能帮帮我

Comment by shangj...@gmail.com, Jul 9, 2011

用sdupload 上传出现错误。。。求教

Comment by agoodwea...@gmail.com, Oct 18, 2011

如何上传到gae啊,小白求教。。

Comment by icesalt1...@gmail.com, Oct 23, 2011

非常感谢作者的辛勤劳动和无私奉献!太好用了!

Comment by icesalt1...@gmail.com, Oct 23, 2011

上传方法: 1,下载python和Google App Engine SDK for Python,两个都是MSI文件 2,先装python,后装另一个 3,双击桌面上的Google App Engine Launcher图标 4,File菜单→open SDK in explorer,会打开一个文件夹,看一下这个文件夹的路径 5,进CMD,在CMD中进入上一步的那个路径 6,执行 appcfg.py update 命令,update后空格之后紧跟程序文件夹路径

appcfg.py命令的详细用法,移步http://code.google.com/intl/zh-CN/appengine/docs/python/tools/uploadinganapp.html

注意,上传过程中需要输入GAE账户的用户名和密码,输入的密码不会显示出来,尽管输入,输对了自然就过

是不是说的过于详细啰嗦了……

Comment by Nick...@gmail.com, Nov 15, 2011

自己架设,方便快捷,哈哈,感谢作者!!!

Comment by keanu...@gmail.com, Nov 23, 2011

我是这两个错误, File "C:\Program Files\Google\google_appengine\appcfg.py", line 71, in <module> run_file(file, globals()) File "C:\Program Files\Google\google_appengine\appcfg.py", line 67, in run_file execfile(script_path, globals)

何解?

Comment by LiuYuanS...@gmail.com, Feb 2, 2012

为什么 用不了组群直播啊

Comment by joey...@gmail.com, Feb 15, 2012

好好研究一下准备自己搞一个


Sign in to add a comment
Powered by Google Project Hosting