CA Python Exercise
CA Python Exercise
Exercise
03.10 | 28.10
Mentors
Book scraper:
1. automatically gather info from the provided website
2. filter and sort the data
3. GUI using tkinter
4. tests and documentation
Training
4 weeks - the scraper is divided into 3 tasks - scraper, data process, representation of data
● Mentors answer/discuss technical questions that are prepared and sent in advance
● b - number of books
● g - list of genres to search through
● s - list of sortings (for the output, ascending or descending)
● f - list of priority filters for which books to exclude from the scrape
● d - list of keywords to be searched from the description
● t - title of a book to search for
● F - list of book titles to search for (from given json)
● Example:
python main.py -b 50 -g Science -s rating ascending
python main.py -b 24 -g Classics -f rating <3
python main.py -g Fantasy-f price >30
python main.py -b 60 -g Science -f available =14 -d “book”
python main.py -g Science -t “Book Title”
python main.py -X стартира графичен interface в който могат да въведат горните опции.
1. GUI with Tkinter
● Examples:
Project structure
Example project structure :
books_scraper/
|--- main.py
|--- module/
modules/libraries of the project
|--- __init__.py
|--- books.py
|--- README.md
|--- requirements.txt
|--- .gitignore
|--- test/
|--- unit_tests/