Ad
How Do I Pull Data About Cryptocurrencies Using Python?
I am creating a program that needs to pull the value of cryptocurrencies over time from google. I am using Bitcoin as an example:
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
Related Questions
- → What are the pluses/minuses of different ways to configure GPIOs on the Beaglebone Black?
- → Django, code inside <script> tag doesn't work in a template
- → React - Django webpack config with dynamic 'output'
- → GAE Python app - Does URL matter for SEO?
- → Put a Rendered Django Template in Json along with some other items
- → session disappears when request is sent from fetch
- → Python Shopify API output formatted datetime string in django template
- → Can't turn off Javascript using Selenium
- → WebDriver click() vs JavaScript click()
- → Shopify app: adding a new shipping address via webhook
- → Shopify + Python library: how to create new shipping address
- → shopify python api: how do add new assets to published theme?
- → Access 'HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT' with Python Shopify Module
Ad