Created
March 10, 2016 05:01
-
-
Save BastinRobin/21aa555605257d09bb52 to your computer and use it in GitHub Desktop.
Twitter Scrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup as bs | |
| import re | |
| import urllib2 | |
| page = urllib2.urlopen("https://twitter.com/sumantewary") | |
| soup = bs(page) | |
| tweets = soup.findAll("p",{"class":"js-tweet-text"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment