Skip to main content

Playstation Store price crawler

Project description

PyStation

PyStation is a Playstation Store crawler that lets the users to gather information about a specific game or a number of discounted games.

PyStation can either be used as a command line tool or an API. The CLI results can either be printed on the command line or displayed on the screen with addition of the games images.

Installation

PyStation in not yet available on PyPI. Forking the project is always an option.

Current Features

  • Title
  • Price (Discounted price only available for the multi options)
  • Image (Only on the gui option)

Possible Future Development

  • Description and Publisher of the game
  • Multiple single game searches
  • Better code organization
  • Publishing as a CLI tool and API to PYPI
  • Improve the gui
    • Main menu
    • More beautiful interface
    • etc.

CLI Tool Usage

pystation [options] [args]

Options:

-h, --help            show this help message and exit
-s SINGLE [SINGLE ...], --single SINGLE [SINGLE ...]
                        Get a single game price and information.
-gs GUI_SINGLE [GUI_SINGLE ...], --gui_single GUI_SINGLE [GUI_SINGLE ...]
                        Same as single but with gui and picture
-m, --multi           Get all the sale prices and titles
-gm, --gui_multi      Same as multi but with gui and picture

Using the gui feature doesn't have any other benefit than seeing the images.

In order to get your desired currency for the prices, you need to specify the country.
It is specified by adding -c country after the options and args.

For e.g.
pystation -s minecraft -c germany

Some languages that don't use letters may have unexpectable behavior as the text capturing is done for lating alphabets.

API Usage

The single and multi functions in the station.py file are the most useful as the other ones are mainly helpers for these two.
The country here is just any country name e.g. Finland.

from pystation.station import single, multi
single(title, [country]) -> [[full title, price]]
multi([country]) -> [[full title, og price, discounted price] * x]

A few notes about the implementations

First I was only going to do CLI but as the project went on, I decided to expand to GUI as well. Tkinter was chosen there as it is the easiest option to develop GUI features on Python.

All external library dependancies were chosen for their ease and fit for the project. Usage of too sophisticated libraries would've been a waste of time and resources.

Both the single and the multi funtion uses the search_store function. It's unnecessary for the multi to be checked for no results or be passed through the search_game function. It is made this way as it doesn't add too much time and saves a few lines of redundant code.

All files are formatted using black.

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

PyPlayStation-0.0.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

PyPlayStation-0.0.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file PyPlayStation-0.0.1.tar.gz.

File metadata

  • Download URL: PyPlayStation-0.0.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for PyPlayStation-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6520d33272f0df696e906057eeae25e36ef74d67ba49b31dbde8e821ef6cda28
MD5 de506543dd17fad9fcd2626b4c2203e2
BLAKE2b-256 577432120cb9263f19504a43e82598fc92e35b677ba8809abaf432e02688e36f

See more details on using hashes here.

File details

Details for the file PyPlayStation-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: PyPlayStation-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for PyPlayStation-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7d8b146298e20e46e7cc3b7365d0eadb0d88fe2cd9e23e22fb25d118e8a0b08
MD5 68ec299d779f7cc0016209c118c1746c
BLAKE2b-256 29ee38eb85015df834dc8bc7f2cacf94a0eb57d44e6b8129b2b2f2c0b397787b

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