I am trying to run the following screen scraping script but it's not displaying any output. Can someone tell me what I'm doing wrong?
from BeautifulSoup import BeautifulSoup
import urllib
url = 'http://toronto.en.craigslist.ca/search/cta?query=civic&minAsk=min&maxAsk=max'
doc = urllib.urlopen(url).read()
soup = BeautifulSoup(doc)
tags = soup.findAll('p')
for tag in tags:
addate = tag.contents[0]
path = tag.contents[1].attrs[0][1]
desc = tag.next.next.string
print addate, path, desc