Skip to content

Instantly share code, notes, and snippets.

@BastinRobin
Created March 10, 2016 05:01
Show Gist options
  • Select an option

  • Save BastinRobin/21aa555605257d09bb52 to your computer and use it in GitHub Desktop.

Select an option

Save BastinRobin/21aa555605257d09bb52 to your computer and use it in GitHub Desktop.
Twitter Scrap
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