Giter Club home page Giter Club logo

bgg_scraper's Introduction

BGG Scraper

Outil de récupération ("Scraper") pour récupérer les données de BGG et les mettre sous forme de base de données relationnelle.

Installation

pip install git+https://github.com/Epithumia/BGG_Scraper.git

Utilisation

bgg-scraper [-h]
          (-m GAME_ID [MAX_GAME_ID ...] | -i GAME_ID [GAME_ID ...] | -r)
          [-fr] [-d] [-dsql] [-v]

Paramètres :

  -h, --help            Affiche l'aide
  -m GAME_ID [MAX_GAME_ID], --max-game-id MAX_GAME_ID [MAX_GAME_ID]
                        Récupère tous les jeux jusqu'à GAME_ID (Il y en a environ 350000) ou entre GAME_ID et MAX_GAME_ID
  -i GAME_ID [GAME_ID ...], --game-id GAME_ID [GAME_ID ...]
                        Récupère uniquement GAME_ID (ou tous les GAME_ID indiqués)
  -r, --recover         Reprend le traitement à partir des données sauvegardées (utile en cas de déconnexion)
  -fr                   Utilise le schéma français pour la BDD
  -d                    Débogage (n'enregistre pas dans la base)
  -dsql                 Débogage SQL
  -v                    Mode verbeux

Exemples

Pour récupérer les ~100 premiers jeux : bgg-scraper -m 100 -fr -v Pour récupérer au moins un de chaque type d'objet : bgg-scraper -i 40692 156497 293300 219880 47163 182880 195673 -fr

Schéma

Un schéma de la base est disponible dans le dossier schema au format MoCoDo (/schema/BGG_SR.mocodo)

bgg_scraper's People

Contributors

epithumia avatar

Watchers

James Cloos avatar  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.