samedi 22 juillet 2017

Scraping Google Finance (BeautifulSoup)

I'm trying to scrape Google Finance, and get the "Related Stocks" table, which has id "cc-table" and class "gf-table" based on the webpage inspector in Chrome. (Sample Link: http://ift.tt/1lv769v)

But when I run .find("table") or .findAll("table"), this table does not come up. I can find JSON-looking objects with the table's contents in the HTML content in Python, but do not know how to get it. Any ideas?

Aucun commentaire:

Enregistrer un commentaire