Sunday, 17 July 2016

Web scraping data from an interactive chart that changes with cursor position on the screen

I am trying to web scrape data from this url, http://ift.tt/1xWoJrg. On the page you see an interactive table who only shows the preflop actions if you move your cursor over the different squares. I checked the source code and all the info is in the class stat summary, but stat summary changes with cursor position. Is there a way to use lxml and requests to extrapolate the ENTIRE table? I am able to do it for a single position but not all.

My code so far:

from lxml import html
import requests
page = requests.get("http://ift.tt/1xWoJrg")
tree = html.fromstring(page.content)



from Recent Questions - Stack Overflow http://ift.tt/29MN4s6
via https://ifttt.com/ IFTTT

No comments:

Post a Comment