Giter VIP home page Giter VIP logo

scraping-manual-assistant's Introduction

Scraping Manual Assistant

Intro

Scraping Manual Assistant (Abbreviated to ScrapingManAss) is a video game manual downloader.

Design

ScrapingManass is designed with two modules:

The first part is the database-populator. It utillizes selenium to scrape gamesdatabase.org. Here it finds information regarding the games.

The other part is the manual-downloader. With the records made in the first module, this module aquires, sanitizes and converts it into formatted request urls, attempts to download on a given url and saves the result as a pdf.

Usage

  • --help -h : Shows the help menu
  • --list -s : Show a list of all systems and their corresponding ID
  • --scrapedatabase -s : Populate the database for taget system(s)
  • --download -d : Download manuals for games present in the database
  • --both -b : Activate both the scraper and the downloader
  • --yes -y : Skips the confirmation on which systems are targeted

Arguments

The options -s, -d and -b accepts an arbitrary amount of numbers, so for instance, if you want to scrape several systems, just add the system ID (given from either watching systems.json or launching the script with -l)

ScrapingManAss also supports dashes between numbers as a range selector (x-y)

Example:

  • python ./scrapingmanass.py -l -> Show all the systems with their id's
  • python ./scrapingmanass.py -s 1 2 3 4 5 -> Populate the database with entries from systems 1 to 5
  • python ./scrapingmanass.py -b 1-25 -> Populate the database AND download the manuals from systems 1 to 25

Requirements

The packages used in this project is mentioned in requirements.txt.

  • Selenium is needed to scrape the webpages.
  • Sqlite3 for the database

Apply all packages for easy start:

pip install -r requirements.txt

scraping-manual-assistant's People

Contributors

olavstornes 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.