python api to Nicklason's prices.tf site.
Project description
PricesTF Python API
This modul is a simple python api for Nickalson's prices.tf website.
Installation
This module requires Python v3+ to run.
For install the module type this to your command line...
pip install pricestf
Quick Example
from pricestf import get_price
print(get_price("Scattergun", quality="Strange", australium=False, killstreak=0, error_message=True))
It will return a dictionary with the item's full name and with the buy- and sellprices. If something went wring, it returns an error code.
Error codes:
0
: Unknown error1
: Rate limit exceeded2
: Item is not priced3
: No prices for given source4
: No item named
List of tf2 items{: .btn}
Qualities:
- Normal
- Genuine
- Vintage
- rarity3
- Unusual
- Unique (Default)
- Community
- Valve
- Self-Made
- Customized
- Strange
- Completed
- Haunted
- Collector's
- Decorated Weapon
Australium:
- It can be
True
if australium, andFalse
if not. (Default:False
)
Killstreak:
- If
not killstreak
it's0
- If
killstreak
it's1
- If
specialized
it's2
- If
pofessional
it's3
Error message:
- If
True
it will print the error message, ifFalse
it wont. (Default:True
)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pricestf-0.0.22.tar.gz
(25.5 kB
view hashes)
Built Distribution
pricestf-0.0.22-py3-none-any.whl
(25.7 kB
view hashes)
Close
Hashes for pricestf-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77332ff6d488c881e44392bf72bf4c6bfdb6c3b30ec5ccb79c309f8b635a07dd |
|
MD5 | 856901452d34b4869825e0dcd6ea388e |
|
BLAKE2b-256 | 0f49f7223fafbfbcd77355064a79ffc7a3eae9b443c5c491161a7a2a02092abe |