Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

How to webscrape an interactive webpage with python

$
0
0

I would like to know to webscrape the following website: http://chonos.ifop.cl/flow/

The web page has a map on the right, when you click on each point it shows on the left time series in Highcharts graphs, I would like to extract these series iteratively but I still can't. Here is my code up to now:

from io import BytesIOimport gzipsite_url='http://chonos.ifop.cl/flow/'r = urllib.request.urlopen(site_url)site_content = r.read()s = BeautifulSoup(site_content, 'html.parser')print(s.prettify()[:100])s.find_all('td')s.find_all('table')s.findAll('table',attrs={'class':'uk-table uk-table-small uk-table-striped'})

Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>