Giter VIP home page Giter VIP logo

add-free-licenses's Introduction

Note

Consider switching to the ASF plugin FreePackages developped by Citrinate!

Add Free Licenses

This repository contains Python code to automatically add free licenses on Steam.

Illustration cover

Requirements

  • Install the latest version of Python 3.X.
  • Install the required packages:
pip install -r requirements.txt
  • Install ArchiSteamFarm (ASF).
  • Make sure that IPC is toggled ON. This is the default value.

Data

To retrieve a list of appIDs which are already tied to your account, here are a few methods.

1. /dynamicstore/userdata

The variable rgOwnedApps in the JSON data returned by the /dynamicstore/userdata endpoint is a large yet non-exhaustive list of appIDs owned by your account. More information can be found on this unofficial wiki.

NB: you have to be authenticated on Steam in your web-browser in order to use this method.


2. steamctl apps list

steamctl is a Python package available on PyPI.

It allows to print to the terminal the exhaustive list of appIDs owned by your account.

pip install pipx
pipx install steamctl
steamctl apps list

The output should be formatted as follows: {appID} {appName}.

[...]
1667640 Imagined Leviathans Demo
1667710 Gladihaters Demo
1667730 Forgotten Journey
1667770 Samurai Shampoo
1667810 Riding Seas Demo
[...]

NB: you have to be authenticated on Steam with steamctl in order to use this method.


3. /games/?tab=all

Caveat: I recommend not to use this procedure because the list of appIDs is not exhaustive , e.g. demos are missing.

A procedure built into the script at Luois45 parses a list of appIDs from the /games/?tab=all web-page.

NB: the "game details" part of your Steam profile have to be public in order to use this method.


4. /account/licenses/

Caveat: I recommend not to use this procedure because this retrieves subIDs instead of appIDs.

Instructions at Luois45 suggest to execute JavaScript code in your browser on the /account/licenses/ web-page.

NB: you have to be authenticated on Steam in your web-browser in order to use this method.


Because it is the only method which returns an exhaustive list, the recommended method is:

pip install pipx
pipx install git+https://github.com/woctezuma/steamctl.git@67-fix-charmap
steamctl apps list > data/steamctl_output.txt

Usage

python add_free_licenses.py

References

add-free-licenses's People

Contributors

motiasnotme avatar woctezuma avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

add-free-licenses's Issues

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.