Im working with url lib2 and I need a help. When I get the information I need from the website, it works fine, but if the info on the website changed, the result still the same, Im thinking that I have to find a way of cleaning up the "cache" or the "lib.close" ... I don't know... Could someone help me out with that please? Thank you
Here is the code:
import urllib2
url = 'http://website.com'
response = urllib2.urlopen(url)
webContent = response.read()
string = webContent.find('***')
alert = webContent[string+11:]
webContent = alert
string = webContent.find('***')
alert = webContent[:string]
alert = alert.replace('</strong>',' ')
print alert