Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from weibo import APIClient
- import urllib2
- import urllib
- import sys
- import time
- from time import clock
- import csv
- import random
- reload(sys)
- sys.setdefaultencoding('utf-8')
- '''Step 0 Login with OAuth2.0'''
- if __name__ == "__main__":
- APP_KEY = '294703483' # app key
- APP_SECRET = 'a2ef9de0a580edb7a26daf2804d27624' # app secret
- CALLBACK_URL = 'https://api.weibo.com/oauth2/authorize' # set callback url exactly like thi
- client = APIClient(app_key=APP_KEY, app_secret=APP_SECRET, redirect_uri=CALLBACK_URL)
- referer_url = client.get_authorize_url()
- r = client.statuses.user_timeline.get(uid=SOME_ID)
- for st in r.statuses:
- print st.text
- r = client.statuses.user_timeline.get(uid=SOME_ID)
- ^
- IndentationError: unindent does not match any outer indentation level
Add Comment
Please, Sign In to add comment