Name | Library | Purpose |
---|---|---|
OpenCV | opencv-python | |
Beautiful Soup | bs4 | |
PostgresSQL Connection | psycopg[binary] | Library to connect to PostgreSQL server. |
Selenium | selenium | |
Sqlite | sqlite | |
Certificates for SSL | pip-system-certs |
py -m pip install bs4 selenium psycopg[binary]
py -m pip freeze > requirements.txt
py -m pip install -r requirements.txt
C:\Users\jurge>"c:\Program Files\PostgreSQL\16\bin\psql.exe" -U webscraper -d postgres -a -f git-workspace\WebScraper\create_tables_postgres.sql
- Images without rating should be displayed more often then already rated images.
- High rated images should be displayed more often than low rated images.
- Images with old rating should be displayed more often than newly rated images.
Constants
probability_not_yet_displayed_images = 0.8
probability_high_rated_images = 0.5
probability_older_rated_images = 0.2
Variables
total_number_images
number_of_not_yet_rated_images
number_of_already_rated_images
quotient_not_yet_rated_images = number_of_not_yet_rated_images / total_number_images
quotient_already_rated_images = number_of_already_rated_images / total_number_images