Skip to content

Project to get prices of CS2 containers from Steam Marketplace, store them in a PostgreSQL database and (in future) create some visualization and data analysis

Notifications You must be signed in to change notification settings

mmcza/CS2_Items_Values

Repository files navigation

Get and save Counter-Strike 2 cases and capsules prices

This is a simple web scraper that gets the prices of the cases and capsules of Counter-Strike 2 from the Steam Community Market.

Note

Please note that this is a personal project and is not intended to be used for commercial purposes.

The data is saved to PostgreSQL database and in future I will add a simple web interface to display the data (hopefully). I also added that the recent data is being saved as JSON to a .txt file, but I will probably remove that in the future.

More about the database schema can be found in the wiki (once I create it).

Result example

Example

To save space all cases get their id (they are created when the script runs for the first time or when a new case is added to the game) that is saved in the cases_list table. Timestamp of each search and currency of the price is saved in the searches table. In the containers table there are all the prices, amount of listings, search_id and case id of the cases and capsules.

This allows to easily track the price changes of the cases and capsules.

How to run

To run the project you need to install the requirements from the requirements.txt file and create a PostgreSQL database. You can make the script run periodically by using a cron job or a task scheduler.

About

Project to get prices of CS2 containers from Steam Marketplace, store them in a PostgreSQL database and (in future) create some visualization and data analysis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages