Skip to main content

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. The function load_from_api takes two arguments.

  • First is necessary, the appid. It can be find in the web page of the game in steam store. Like Cyberpunk 2077's page: https://store.steampowered.com/app/1091500/_2077/, the number 1091500 in the url is its appid.
  • Second can be ignored, if you want to take all the reviews, it controls the number of reviews that the program will take from the web api.
from steam_reviews import ReviewLoader
# AppId is 1091500, and we need 1000 reviews
reviews = ReviewLoader().load_from_api(1091500, 1000)
# Save the review text to a list
review_list = reviews.review_list()
print(review_list[0])
# Save the data as json file, provide the folder path as the argument
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 in the source code.

set_language() is used most frequently, it sets the language of the reviews that downloaded by the program. All supported language can be found here: https://partner.steamgames.com/doc/store/localization.

from steam_reviews import ReviewLoader
# Set the language of reviews to english
reviews_en = ReviewLoader().set_language('english') \
                        .load_from_api(1091500, 1000)
# Set the language of reviews to simplified chinese
reviews_zh = ReviewLoader().set_language('schinese') \
                        .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 of the saved json data
file_path = 'path/to/data/reviews_1091500.json'
reviews = ReviewLoader().load_from_local(file_path)

Metadata

Release files for steam-reviews 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for steam-reviews 0.1.2
File Size Uploaded Provenance Actions
steam_reviews-0.1.2.tar.gz 6.5 kB Without provenance Details for steam_reviews-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for steam-reviews 0.1.2
File Interpreter ABI Platform Actions
steam_reviews-0.1.2-py3-none-any.whl Python 3 none any Details for steam_reviews-0.1.2-py3-none-any.whl

Total release size: 15.0 kB

Release files / steam_reviews-0.1.2.tar.gz

Download URL steam_reviews-0.1.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
47b555b405eaad11960501072fcc094218a817e0c131bf62a3f68f035b0a7a57
BLAKE2b-256 checksum
How to use checksums
c7e4c6253ccfc498962d2e915a0200dc1a144b2b26adb31021430ee78888c75a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.1.post20200807 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

Release files / steam_reviews-0.1.2-py3-none-any.whl

Download URL steam_reviews-0.1.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a438bd8848eb6899c390ebaf5d36d9a38e6d2b19055ab8407ddeebb99098f8f
BLAKE2b-256 checksum
How to use checksums
3ea69d8bafd55f4da9cbd8033110bd8045b1f571e928d5264db3db1fee11fcb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.1.post20200807 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

Security for steam-reviews 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page