Skip to main content

Board games data scraping and processing from BoardGameGeek and more!

Project description

🎲 Board Game Scraper 🕸

Scraping data about board games from the web. View the data live at Recommend.Games! Install via

pip install board-game-scraper

Sources

Run scrapers

Requires Python 3. Make sure Pipenv is installed and create the virtual environment:

python3 -m pip install --upgrade pipenv
pipenv install --dev
pipenv shell

Run a spider like so:

JOBDIR="jobs/${SPIDER}/$(date --utc +'%Y-%m-%dT%H-%M-%S')"
scrapy crawl "${SPIDER}" \
    --output 'feeds/%(name)s/%(time)s/%(class)s.csv' \
    --set "JOBDIR=${JOBDIR}"

where $SPIDER is one of the IDs above.

Run all the spiders with the run_scrapers.sh script. Get a list of the running scrapers' PIDs with the processes.sh script. You can close all the running scrapers via

./processes.sh stop

and resume them later.

Tests

You can run scrapy check to perform contract tests for all spiders, or scrapy check $SPIDER to test one particular spider. If tests fails, there most likely has been some change on the website and the spider needs updating.

Board game datasets

If you are interested in using any of the datasets produced by this scraper, take a look at the BoardGameGeek guild. A subset of the data can also be found on Kaggle.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

board_game_scraper-2.23.1.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

board_game_scraper-2.23.1-py2.py3-none-any.whl (71.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file board_game_scraper-2.23.1.tar.gz.

File metadata

  • Download URL: board_game_scraper-2.23.1.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for board_game_scraper-2.23.1.tar.gz
Algorithm Hash digest
SHA256 bac3cca7aa6887ff9d2450e991f6d847a755a38df14d3075af522cb313bbb423
MD5 3a6cca506e1b2c27b02ff3b7f3bad76e
BLAKE2b-256 ccf2da8e5aec00ebef76dfd2f6a625f52bd6aa46960a992418a875fa57cdd89e

See more details on using hashes here.

File details

Details for the file board_game_scraper-2.23.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for board_game_scraper-2.23.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5d27bdc37721857a111bbe72b74721afd5a153fa5824753c386407b0c5629d7e
MD5 bb03ca5adada57ac61c9358c0c9602c8
BLAKE2b-256 d30158c7b6f42f4160d01220ef243b1b107aa8d865985d0620e6f43b3dbceed8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page