Giter VIP home page Giter VIP logo

webscraper's Introduction

WebScraper

Introduction and Goals

Requirements Overview

Dependencies

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

Install From Scratch

py -m pip install bs4 selenium psycopg[binary]

Create Dependencies File

py -m pip freeze > requirements.txt

Install From Dependencies File

py -m pip install -r requirements.txt

Database setup

Execute PostgreSQL script

C:\Users\jurge>"c:\Program Files\PostgreSQL\16\bin\psql.exe" -U webscraper -d postgres -a -f git-workspace\WebScraper\create_tables_postgres.sql

Solution Strategy

Ranker

Images to be ranked

Requirements
  1. Images without rating should be displayed more often then already rated images.
  2. High rated images should be displayed more often than low rated images.
  3. 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

webscraper's People

Contributors

jdufner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.