Re:Finding the best ticket price – Simple web scraping with ...
by danielforsyth on Tuesday June 17, 2014 @09:32AM
(#7904288)
Thanks for posting this, I am still very new to python and your website has taught me a lot. Appreciate the feedback.
import requests
from bs4 import BeautifulSoup
from urlparse import urljoin
URL = 'http://philadelphia.craigslist.org/search/sss?sort=date&quer...
BASE = 'http://philadelphia.craigslist.org/cpg/'
response = requests.get(URL)
soup = BeautifulSoup(response.content)
for listing in soup.find_all('p',{'class':'row'}):