witekbobrowski / humblecritic

πŸ’― Get score for HumbleBundle bundles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ’― Get score for HumbleBundle bundle

Bundles supported:

  • Book bundle (ratings from Goodreads)
  • Comic bundle (ratings from Goodreads)
  • Game bundle
  • Software bundle
  • Mobile bundle

Installation

Clone this repository and from the project directory run install.sh

$ ./install.sh

And thats basically it.

Note: To access some services (like goodreads) the script needs to have api keys. You will be promped to pass these in if needed.

Usage

The installation process will supply entry point for the script so you can run it like so

$ humblecritic [-h] [-l [urls]] [-j file] [-v]

Add one or more option from below for customised behaviour:

  • -h, --help Display help message and exit.

  • -l, --link [urls] URL's for HumbleBundle bundles to be scraped and reviewed.

  • -j, --json scraped-data.json Export scraped data to json.

  • -v, --version Print the script version.

NOTE: Current version requires -l option with desired bundle urls for any results.

Contents

I've tried to break down the logic to modules so I can easily extend the functionality in the future (ex. by supporting game bundles and getting reviews from metacritic.com).

.
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ humblecritic
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ __main__.py
β”‚   β”œβ”€β”€ config.py
β”‚   β”œβ”€β”€ goodreads
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ book.py
β”‚   β”‚   └── client.py
β”‚   β”œβ”€β”€ humblebundle
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ builder.py
β”‚   β”‚   β”œβ”€β”€ bundle.py
β”‚   β”‚   β”œβ”€β”€ item.py
β”‚   β”‚   β”œβ”€β”€ scraper.py
β”‚   β”‚   └── tier.py
β”‚   └── review.py
β”œβ”€β”€ install.sh
β”œβ”€β”€ logo.png
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ setup.py
└── tests
    β”œβ”€β”€ __init__.py
    β”œβ”€β”€ context.py
    └── humblebundle_test.py

About

πŸ’― Get score for HumbleBundle bundles

License:MIT License


Languages

Language:Python 84.6%Language:Shell 15.4%