On macOS
$ source venv\Scripts\activate
On PowerShell
$ venv\Scripts\activate
$ py -3 -m venv venv
pip install Flask
pip install beautifulsoup4
pip install -U selenium
pip install webdriver-manager
pip install lxml
pip install python-dotenv
A .env
file is needed because you need to be connected on your instagram account to be able to visite other people account. It should be created on the same folder then the file app.py
and it should contain ;
INSTA_USERNAME=<your-username>
INSTA_PASSWORD=<your-password>
$ flask run
If you have error messages, try to run those commands first, then retry :
$ export FLASK_APP=app
$ export FLASK_ENV=development
Don't hesitate to read this article if you need help
- Flask
- Beautiful soup 4
- Selenium
- webdriver_manager
- lxml
- The folders
static
andtemplates
contains all the client-side files. - The file
app.py
contains the main script of the application. It is from this file that Flask runs. - The file
commands.py
contains the different commands for the Arduino. WIP - The file
results.html
contains temporarily the HTML page that the script is scraping. - The file
scraping.py
is the script test for scraping a page.