Coder Social home page Coder Social logo

mmcza / cs2_items_values Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 473 KB

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

Python 100.00%
computer-games counter-strike-2 python steam economic-data postgresql postgresql-python

cs2_items_values's Introduction

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.

cs2_items_values's People

Contributors

mmcza avatar

Watchers

 avatar

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.