December 12th, 2012, 03:15 PM
December 12th, 2012, 03:27 PM
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:
As you can see, urllib2.urlopen() opens the website and treats it like a text file.
for strl in lstg:
if srchstrng in strl: numentries+=1