In this video we are turning our previous web scraping scripts into an API using Flask and Python.
APIs can be used in lots more situations then just command line scripts so it's a good idea to do this.
It also helps in sharing, you can easily share an API with the world and have them start using it straight away as opposed to normal python scripts where people might not have the ability to even run python.
Turning any website into an API lets you talk to it with programs. You only get the data you need and not all the cruft that is added to make websites look nice to the user.
We are using Flask in this video because it's very simple and quick to get up and running.
Tools used in this video:
Flask (to make the api): https://flask.palletsprojects.com/en/...
Autoscraper (to get data from websites): https://github.com/alirezamika/autosc...
Python
This video here is useful to watch as it shows how we built the scripts to get the data in the first place using autoscraper and webscraping: • The EASIEST way to do WEB SCRAPING with PY...
The code for this video is here: https://github.com/oidz1234/CoinScraper
--
Website: https://mark.mcnally.je