Alexander Chen's Blog

Yes, we can!

“Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma – which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.”
By Steve Jobs

用自己的Google账户自建Twitter代理

Posted on:  November 26, 2009  |   Category: Computer
Comments:  2 Comments
Print Friendly

为了达到让菜鸟也能按步骤完成搭建的目的,本文只尽可能简便的罗列步骤。声明:如果你所在的地方无法访问*.appspot.com,则此文方法无效。

 

1. 首先,你需要有一个Google账户,如果没有,请到这里注册。

 

2. 访问这里,点击右边侧栏的“使用入门”中的“注册”。

 

3. 在接下来的界面中,用刚刚的Google账户登录。从这一界面开始下面将会是英文。

 

4. 点击Create an Application。

 

5. 下一步将会进行短信验证。Country and Carrier选择Other,Mobile Number填写你的手机号,注意前面加 +86 ,例如,+8613501234567。注意,这里每一个手机号码只能验证一个账户,收到验证码后在下一个画面填入。

 

6. 接着来到Create an Application页面,在Application Identifier填入你想要的程序名称,以后你访问该程序的地址就是: your-identifier.appspot.com。Application Title可以随喜好填写。选中I accept these terms,然后Save。

 

7. 下一个页面会显示Application Registered Successfully。

 

8. 点击这里下载BirdNest,这是一个网友已经打包好的版本,原地址请访问:http://cid-b25292e8d4856480.skydrive.live.com/self.aspx/.Public/gae.zip。下载后解压,默认解压为gae目录,进入目录,用任何文本编辑工具打开app.yaml文件(推荐使用写字板),将第一行application:nest中的nest改为上文中你注册的your-identifier。

 

9. 下载以下这两个工具,并安装:

Google App Engine:http://code.google.com/intl/zh-CN/appengine/downloads.html,下载Windows平台的GoogleAppEngine_1.2.7.msi

Python:http://www.python.org/download/releases/2.5.4/,如果该地址无法访问,请直接在本站下载(本站只提供x86版本的下载,如果你需要别的版本,请自行到上述地址下载).

 

10. 安装完成后,到开始菜单里运行Google App Engine Launcher。初次运行它可能会出现警告界面,提示找不到Python,不要紧,点击OK,然后选择 Edit——Preferences,在其中Python Path里,选择你所安装的Python路径,通常情况下默认为C:\Python25\python.exe。设置完成后下次运行就不会再提示了。

 

11. 选择File——Add Existing Application,然后选择你刚才解压后的gae目录,点击add。然后你的窗口中会得到一个name为your-identifier,端口为8080的App。选中该App,点击工具栏上的Deploy,在弹出的对话框中填入你的Gmail地址和密码,点击OK后会出现一个DOS窗口,等待一小段时间,上传成功后会出现一个提示窗口,如果最后一行写着:Process exited with code 0,则证明你的App上传无误可以正确使用。如果提示不是code 0,则说明你的某处操作有误,请参照上文改正。

 

12. 最后,访问your-identifier.appspot.com/api/,即出现Twitter首页。

 

 

下面是如何通过twhirl使用自己搭建的API来访问Twitter:

 

1.Twhirl需要adobe air支持,请先下载安装adobe air:http://get.adobe.com/air/,然后到这里下载twhirl:http://www.twhirl.org/download

 

2. 安装好Twhirl后,在它的Accounts界面,左下角的菜单里选择laconi.ca,在旁边的输入框中填写:your-twitter-id@your-identifier.appspot.comyour-twitter-id是你的twitter用户名,@之后是你的Google App地址。然后在上面的方框中选择你的帐户,点击右边的Connect,输入密码即可使用了。

 

 

关键字:自建twitter代理教程,自建Twitter API,利用Google App Engine建立Twitter代理API,怎样翻墙使用Twitter,自建代理翻墙使用Twitter

Comments

2 Comments to “用自己的Google账户自建Twitter代理”
  • interjc says:

    非常好,非常感谢!

  • [...] This post was mentioned on Twitter by interjc, interjc. interjc said: @xiaoyezi 终于搞成功了,呵呵,是我程序没有卸干净就重装了.. 你要自建就看这里 http://www.p4cpu.net/2009/11/26/diy-twitter-api/ [...]

  • Leave a Comment




    Google Custom Search


    About

    Welcome to Alexander Chen's Blog. This blog is about a little bit everything, but mainly focuses on my thoughts, and some computer and smart device tips.

    Any content here is welcomed to be used or referenced, but before you use it freely, please follow THIS agreement.

    This blog is optimized for MOBILE DEVICES.

    Contact Me


    Function