A web app to scrape and download images from these websites - Idlebrain, Ragalahari, Cinejosh and Blogspot/tollywoodhq.com galleries.
-
Install all the dependencies from
requirements.txt
. -
Open command prompt in the projects directory and write the following commands
set FLASK_APP = main.py
- This will tell Flask to point the application tomain.py
.set FLASK_DEBUG = True
- This will tell Flask to set the debug option toTrue
. Used for debugging purposes if any issues arise.
-
Type
flask run
command to start the application. -
Alternatively you could put the above commands in a Windows batch file(see below) and just run it to start the application.
:: Setting the FLASK_APP to main.py set FLASK_APP=main.py :: Setting DEBUG as True/False. Always set to 'True' in Dev environment and 'False' in Prod environment. set FLASK_DEBUG=True ::Starting the flask server flask run PAUSE
- Create a directory.
- Download the images from the URL and saves it to the directory.
- Zip the directory and provides the zip folder as download attachment.