Scraping data from sources around the internet with Python and BeautifulSoup library in Flask framework
This is simple project using Python with BeautifulSoup library for scraping data from Tehran Stock Exchange website. This web application is developped in Flask framework.
After installing latest version of Python, create a virtul environment in command prompt:
python -m venv venv_name
activate the venv:
venv_name\Scripts\activate
Install the flask with pip installer within the venv area:
pip install Flask
Install BeautifulSoup library:
pip install requests bs4
other things that needed is commented between codes.
finally after replacing the app.py and templates folder above, you can run the flask app:
flask run
- Running on http://127.0.0.1:5000/
for deployment refer to this link