Skip to content

Instantly share code, notes, and snippets.


Allison Parrish aparrish

View GitHub Profile
View gist:2500947
import urllib2
import simplejson
import re
import requests
from bs4 import BeautifulSoup
from random import choice
# The request also includes the userip parameter which provides the end
# user's IP address. Doing so will help distinguish this legitimate
import urllib
import BeautifulSoup
import re
html = urllib.urlopen('').read()
soup = BeautifulSoup.BeautifulSoup(html)
#texts = soup.findAll(text=True)
texts = soup.find("div", {"class": "arial14"})