A package of getting game reviews from steam platform easily, for further text analytics projects.
Project description
Steam Reviews
A package of getting game reviews from steam easily, for further text analytics projects.
Install
The package is available in PyPi.
pip install steam_reviews
Use
Basic usage
For example, we load the reviews of Cyberpunk 2077 from the api.
from steam_reviews import ReviewLoader
reviews = ReviewLoader().load_from_api(1091500, 1000)
review_list = reviews.review_list()
print(review_list[0])
reviews.save_json('path_to/data/')
With more parameters
You can add more parameters to get customized reviews. More information can be found in the functions' documents.
from steam_reviews import ReviewLoader
reviews = ReviewLoader().set_language('english') \
.set_num_per_page(50) \
.load_from_api(1091500, 1000)
Load reviews of several games
The funciton load_batch_from_api()
can receive a list containing appids
and request all the reviews for each of the game.
from steam_reviews import ReviewLoader
appids = [1091500, 1097150]
reviews = ReviewLoader().set_language('english') \
.set_num_per_page(50) \
.load_batch_from_api(appids, 1000)
Load from local json files
from steam_reviews import ReviewLoader
file_path = 'path/to/data/reviews_1091500.json'
reviews = ReviewLoader().load_from_local(file_path)
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
steam_reviews-0.1.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for steam_reviews-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42e81babf5f08a892d9c74611fa25fe2f6d6108114af9dfd45909d2d60bdacc |
|
MD5 | 5e15568f5ebd0ae019c4c0f9d059554b |
|
BLAKE2b-256 | d32c0d46cd128ed4e56e718b5a91800cb5eb7037f6f003bef8a32dc0967542c6 |