Only once:
-
install virtualenv:
pip install virtualenv -
generate the virtual env:
virtualenv -p python3 .venv(linux) orvirtualenv -p python .venv(windows)
To run:
-
activate the virtual env:
source .venv/bin/activate(linux) or.venv\Scripts\activate(windows) -
(only once) install the requirements:
pip install -r requirements.txt -
create a json file "urls.json". example of the json file:
{
"science": "http://www.ebook3000.com/Magazine/Science-related/list_74_%s.html",
"computer_related": "http://www.ebook3000.com/Magazine/Computer-related/list_64_%s.html"
}- run:
python main.pyand open the address on browser.