This file contains 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
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 |
This file contains 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
import urllib | |
import BeautifulSoup | |
import re | |
html = urllib.urlopen('http://www.oprah.com/relationships/What-Kind-of-Woman-Watches-Porn-Researchers-Find-Answers').read() | |
soup = BeautifulSoup.BeautifulSoup(html) | |
#texts = soup.findAll(text=True) | |
texts = soup.find("div", {"class": "arial14"}) |