Synchronize Twitter to Sina Weibo (twittersinasync usage)

Source: Internet
Author: User

I tried a lot of methods to synchronize Twitter to other domestic collars. The synchronization effect was good in the early days, but now it is getting worse. synchronization is more or less problematic, especially when synchronizing it to Sina Weibo, which was used in the early days of moonlight.ProgramNot bad, but it was useless later. It seems that it is Sina's policy. Later I found this twittersinasync program, which was synchronized to Sina through oauth. In this way, the authentication method should be easier to synchronize to Sina Weibo. However, the actual effect is not ideal, because there are many reasons, and I have been using this program to work together, but I can't go back to Sina Weibo to update a few.

There are indeed many disadvantages for synchronizing Twitter to Sina Weibo: 1. Twitter should be not very sensitive, but it is different if it is synchronized to Sina, and the loss is also normal; 2, gae itself is blocked, so it may not be used in some cases; 3. Even if the synchronization time is set to be shorter, you will still lose the push, in addition to sensitive words, Sina may have restrictions; 4. It has recently discovered repeated sending. Generally, it is repeated once and there are two identical causes, which are unknown, it may be related to Sina's enabling weibo.com domain name. Anyway, I can tolerate these shortcomings because Sina Weibo is not my main battlefield. Maybe it would be a better choice to use Sina Weibo as the main push and synchronize to Twitter, but I don't like it.

This article basically introduces the text of the twittersinasync usage method, because I have not found any tutorials on the Internet, but it is quite easy to write in README, so it's even an advanced tutorial. By the way, this program is recorded, because I usually lose it after it is completed, and even the name cannot be remembered in the future. When it is used again, it will be searched all over the world.

Steps:

1. Download twittersinasync

2. Go to Google App Engine to create a program. The name is yours. Just to complete this tutorial, I grabbed the twittersinasync name. After the tutorial is completed, you may be able to access it. In this case, everyone should be able to use it. I hope so.

3. decompress the downloaded twittersinasync and upload the app. yaml. the template is renamed to app. yaml, and use NotePad to open this file and modify the your-gae-Application-ID to your ID, for example, the twittersinasync I just registered from. For cron. modify the yaml file as needed. This is the scheduled time file of the task. The every 1 minutes modification in the file is as frequent as one minute. I changed it to every 10 minutes, it can also reduce the burden on Gae. For details, refer to the later usage. If the resource consumption is too large, the time may be extended.

4. register the Sina bib key. Go to the http://open.t.sina.com.cn/my app, create the app, fill in the content which is probably such a situation

 

Because our applications are not authenticated, the application name and application address are useless, so these are basically left blank, click the created app key and app secret.

5. Modify the name of properties. ini. template to properties. ini. Open it in notepad and modify the consumer_key and consumer_secret, which exactly correspond to two strings of characters.

6. After modification, upload the program to Gae. Of course, you need to install Google appengine and then use the command to upload: appcfg. py update twittersinasync. Twittersinasync operates on your own folder in the c: \ Program Files \ google \ google_appengine directory.

After creation, access http://twittersinasync.appspot.com/(may be walled, Please access the wall) to see the effect

7. Click Create invitation at this time to get an invitation link, such as: http://twittersinasync.appspot.com/register? Invitation_code = xpjsg2uk. Of course, this is also the case where you log on as the administrator, otherwise normal users cannot create even if you log on. Share this link with a registered friend. If you use this link, click it on the following page.

Note: The authorization code in is what I got later. Instead of entering the authorization code at this time, I should first go to the next step to obtain the Sina Weibo authorization code.

8. Click Step 1 to obtain the Sina Weibo authorization code.

Click it to go to this page. Enter the account and password you want to manage, and then authorize the account to obtain the authorization code.

 

9. Go back to the page in step 1 and enter the Sina authorization code and your Twitter ID and confirm them.

Now, even if it is all over, your Twitter will be able to sync to Sina Weibo.

BTW. response. status = '200 OK 'is commented out and can be used normally.

Finally, if you think it is difficult to build such an environment, you can also use the invitation code provided by me in principle, so that you only need to bind it with your sina bib, you can enjoy ten minutes of synchronization. Let's send ten invitation links first. If anyone uses the link, please leave a message to let everyone know about the usage. If you use it, let me check the situation before providing it.

Http://twittersinasync.appspot.com/register? Invitation_code = qclwg9sq

Http://twittersinasync.appspot.com/register? Invitation_code = lk5vyz3r

Http://twittersinasync.appspot.com/register? Invitation_code = a8fn14rm

Http://twittersinasync.appspot.com/register? Invitation_code = n1jc8ko3

Http://twittersinasync.appspot.com/register? Invitation_code = rmc6ncl5

Http://twittersinasync.appspot.com/register? Invitation_code = c1clion6

Http://twittersinasync.appspot.com/register? Invitation_code = 6mln9g65

Http://twittersinasync.appspot.com/register? Invitation_code = 2zbfyeu6

Http://twittersinasync.appspot.com/register? Invitation_code = xhd47zta

Http://twittersinasync.appspot.com/register? Invitation_code = 591_l3s

Of course, I have not tried it completely. Please test whether this method is feasible. I previously set up my own use is no problem, can be used, that is, the above is not ideal, but it is very good. Okay. You are welcome to give me feedback. If you have any questions, please submit them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.