Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Superseded by sinaweibo.oauth.py

  • Loading branch information...
commit 0c6156e1754b6dcddda3ea2e4be3051298294b1e 1 parent a05aa04
Cedric Sam cedricsam authored
Showing with 13 additions and 14 deletions.
  1. +13 −14 sinagetter.sh
27 sinagetter.sh
View
@@ -1,20 +1,19 @@
#!/bin/bash
+# Not used anymore. Superseded by sinaweibo.oauth.py
+
USAGE="usage: sinagetter.sh [option:1=user_timeline,2=users_show,3=friends,4=followers,5=tags,6=mostpopularusers,7=reposts,8=comments] [user_id] [screen_name(for saving)] [page#] "
-SINAUSER="cedricsam@gmail.com"
-SINAPASS="LantauIsland"
-SINAAPPID="4280451947"
-#SINAUSER="YOUR_EMAIL"
-#SINAPASS="YOUR_PASSWORD"
-#SINAAPPID="YOUR_APPID"
-URL1="http://api.t.sina.com.cn/statuses/user_timeline.json?source=${SINAAPPID}&count=200"
-URL2="http://api.t.sina.com.cn/users/show.json?source=${SINAAPPID}"
-URL3="http://api.t.sina.com.cn/friends/ids.json?source=${SINAAPPID}&count=5000"
-URL4="http://api.t.sina.com.cn/followers/ids.json?source=${SINAAPPID}&count=5000"
-URL5="http://api.t.sina.com.cn/tags.json?source=${SINAAPPID}"
-URL6="http://api.t.sina.com.cn/users/search.json?source=${SINAAPPID}&count=1" # most popular
-URL7="http://api.t.sina.com.cn/statuses/repost_timeline.json?source=${SINAAPPID}&count=200" # reposts
-URL8="http://api.t.sina.com.cn/statuses/comments.json?source=${SINAAPPID}&count=200" # reposts
+SINAUSER="YOUR_EMAIL"
+SINAPASS="YOUR_PASSWORD"
+SINAAPPID="YOUR_APPID"
+URL1="http://api.weibo.com/statuses/user_timeline.json?source=${SINAAPPID}&count=200"
+URL2="http://api.weibo.com/users/show.json?source=${SINAAPPID}"
+URL3="http://api.weibo.com/friends/ids.json?source=${SINAAPPID}&count=5000"
+URL4="http://api.weibo.com/followers/ids.json?source=${SINAAPPID}&count=5000"
+URL5="http://api.weibo.com/tags.json?source=${SINAAPPID}"
+URL6="http://api.weibo.com/users/search.json?source=${SINAAPPID}&count=1" # most popular
+URL7="http://api.weibo.com/statuses/repost_timeline.json?source=${SINAAPPID}&count=200" # reposts
+URL8="http://api.weibo.com/statuses/comments.json?source=${SINAAPPID}&count=200" # reposts
if [ $# -lt 3 ]
then
Please sign in to comment.
Something went wrong with that request. Please try again.