Ad

How Do I Pull Data About Cryptocurrencies Using Python?

- 1 answer

I am creating a program that needs to pull the value of cryptocurrencies over time from google. I am using Bitcoin as an example:

Graph of Bitcoin value in AUD when "value of bitcoin" is searched.

I need to pull all the values from this graph and write them to a file using python.

Any help would be appreciated! :)

Edit:

If you inspect element the graph, you get the following HTML code:

M  0 207.06 L 0.75 206.97 ...

This is the data I would like to pull and I would like to know how to go about this.

Ad

Answer

If you simply want to "inspect element" from python you should use web scraping, APIs safer but they may cost money eventually. For web scraping in python I'd use Selenium, though Beautiful soup is another option. It's not too difficult, here's a YouTube tutorial from a quick Google search: https://youtu.be/Xjv1sY630Uc

Ad
source: stackoverflow.com
Ad