Scrapes books on the best online book librairy : https://books.toscrape.com/
Create a venv & activate & install the requirements.txt, then :
Unix's like:
# setup.py :
pip install --editable
getbooks
Windows:
reboot
Using directory option
BOOKS_DIRECTORY="plop" getbooks -c https://books.toscrape.com/catalogue/category/books/mystery_3/index.htm
export BOOKS_DIRECTORY="musics/jukebox"
getbooks -c https://books.toscrape.com/catalogue/category/books/mystery_3/index.htm
getbooks --directory plop -c https://books.toscrape.com/catalogue/category/books/mystery_3/index.htm
Retrieve all books
getbooks
getbooks --all
Retrieve all books of one category
getbooks -c <url_category>
getbooks --category <url_category>
Retrieve one book
getbooks -b <url_category>
getbooks --book <url_book>
Retrieve all books, with data in json format
getbooks --json
getbooks --all --json
You can send SIGINT to interrupt the execution of the programm (CTRL + C)
Distributed under the HaveFun license. See LICENSE
for more information.