I'm scraping a website and i'm retrieving a table and a line of date. Everything works fine but when i run my script i'm getting the current data from the site and sometimes i'm getting yesterday values from the site.
When i'm entering the site the data is always updated.
This is part of my code, full code is at: http://pythonfiddle.com/lme
url = 'https://www.lme.com/en-gb/metals/non-ferrous/#tabIndex=0'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
dateFromSite = soup.find('div', class_='delayed-date').text.strip()
Aucun commentaire:
Enregistrer un commentaire