backlog_puller
==============
*Formerly `backloggery-puller`*
`backlog_puller` is a simple python module that can pull a user's complete video game backlog from [The Backloggery](http://www.backloggery.com) given a username. The results can be returned in XML and JSON format as well as a regular ole' python object.
Setup
=====
Make sure you have python 2.7.x installed.
That's it! The `backloggery-puller` module only relies on The Python Standard Library to work properly. Other versions of Python 2 might work, but they haven't been tested.
Installation
============
You can install `backlog_puller` from PyPi with the following command:
`pip install backlog_puller`
When `backlog_puller` is installed the `backlog_pull` command is also installed. Simply enter:
`backlog_pull {username}`
on your terminal of choice and you will get a JSON representation of that user's backlog.
Usage
=====
`backloggery-puller` consists of two major components: A GamesRequest that pulls the raw HTML from The Backloggery, and the BacklogHTMLParser that converts the raw html into more useful output.
**For example:**
```python
import backloggery_puller
request = GamesRequest("username")
parser = BacklogHTMLParser()
parser.feed(request.get_raw_page())
print parser.backlog
```
Will create a `GamesRequest` for the user `"username"` and feed it into a `BacklogHTMLParser` where it will be stored as a python dictionary. The `BacklogHTMLParser` can then output the parsed data as XML, JSON, or a serialized Python object.
Feature List/Todos
==================
- [X] Retrieve HTML containing entire backlog
- [X] Retrieve one page of HTML
- [X] Retrieve subsequent page with no overlap
- [X] Retrieve pages until the end is reached
- [ ] Parse HTML to more useful formats
- [X] Pull basic data from raw HTML
- [X] Pull game name
- [X] Pull completion status
- [X] Pull game console name
- [ ] Pull advanced data from raw HTML
- [X] Format basic data into XML
- [X] Format basic data into JSON
- [ ] Format basic data into CSV
==============
*Formerly `backloggery-puller`*
`backlog_puller` is a simple python module that can pull a user's complete video game backlog from [The Backloggery](http://www.backloggery.com) given a username. The results can be returned in XML and JSON format as well as a regular ole' python object.
Setup
=====
Make sure you have python 2.7.x installed.
That's it! The `backloggery-puller` module only relies on The Python Standard Library to work properly. Other versions of Python 2 might work, but they haven't been tested.
Installation
============
You can install `backlog_puller` from PyPi with the following command:
`pip install backlog_puller`
When `backlog_puller` is installed the `backlog_pull` command is also installed. Simply enter:
`backlog_pull {username}`
on your terminal of choice and you will get a JSON representation of that user's backlog.
Usage
=====
`backloggery-puller` consists of two major components: A GamesRequest that pulls the raw HTML from The Backloggery, and the BacklogHTMLParser that converts the raw html into more useful output.
**For example:**
```python
import backloggery_puller
request = GamesRequest("username")
parser = BacklogHTMLParser()
parser.feed(request.get_raw_page())
print parser.backlog
```
Will create a `GamesRequest` for the user `"username"` and feed it into a `BacklogHTMLParser` where it will be stored as a python dictionary. The `BacklogHTMLParser` can then output the parsed data as XML, JSON, or a serialized Python object.
Feature List/Todos
==================
- [X] Retrieve HTML containing entire backlog
- [X] Retrieve one page of HTML
- [X] Retrieve subsequent page with no overlap
- [X] Retrieve pages until the end is reached
- [ ] Parse HTML to more useful formats
- [X] Pull basic data from raw HTML
- [X] Pull game name
- [X] Pull completion status
- [X] Pull game console name
- [ ] Pull advanced data from raw HTML
- [X] Format basic data into XML
- [X] Format basic data into JSON
- [ ] Format basic data into CSV
Metadata
Release files for backlog_puller 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| backlog_puller-1.0.0.zip | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backlog_puller-1.0.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 14.6 kB
Release files / backlog_puller-1.0.0.zip
| Download URL | backlog_puller-1.0.0.zip |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94ba63eb34c7f16b4ad19ebc12f22dee9afeb67de0fd3804ae84ffec44dce324
|
|
BLAKE2b-256 checksum How to use checksums |
1b60b1e94be1cbc43c0fa53cdb126afe319882b228b46cd677cc85373910ca83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / backlog_puller-1.0.0-py2-none-any.whl
| Download URL | backlog_puller-1.0.0-py2-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
2826648446d699088e3caf56b41ab120a13a9aa8ad73716cf837819a1fb237e1
|
|
BLAKE2b-256 checksum How to use checksums |
2feb939ea12929faa224c66501176a577a63d2157b987ce4c7187874e12de0e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |