December 12th, 2012, 04:27 PM
Join Date: May 2012
Location: 39N 104.28W
Time spent in forums: 2 Days 30 m 4 sec
Reputation Power: 2
Take a look at the urllib2 module. Now, I know a lot of PyGurus say you should always use BeautifulSoup but I think it's too cumbersome, at least for me, at least for the needs I have.
Here is a script I use to check David Thorne's blog to see if he's posted anything new:
for strl in lstg:
if srchstrng in strl: numentries+=1
As you can see, urllib2.urlopen() opens the website and treats it like a text file.