Twitter requires every requests with oAuth token. Register one at here: https://apps.twitter.com/
Then you will have the following tokens:
- consumer_key
- consumer_secret
- access_token
- access_token_secret
>>> import json | |
>>> data_file = open('/Users/yutu/Desktop/json') | |
>>> data = json.load(data_file) | |
>>> parsed_data = BeautifulSoup(data.get('items_html'),"html.parser") | |
>>> tweets_html = src.findAll('p',attrs={'class':'tweet-text'}) | |
>>> tweets_text = [x.getText() for x in tweets_html] | |
>>> for tweet in tweets_text: | |
... tweet | |
... | |
'This #E3 is probably already giving me more things to be excited about than the last two combined.' |
Twitter requires every requests with oAuth token. Register one at here: https://apps.twitter.com/
Then you will have the following tokens:
[user]
email = xxx
user = xxx
token = xxxxxxxxxx