Skip to content

RandomProgramm3r/Steam-CS2-Market-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Steam-CS2-Market-Scraper

A Parser for the Steam Community Market, which extracts the minimum price of a product in different currencies based on its name and additional parameters.

Functionality

  • Parses the minimum price of an item in different currencies by its name and additional parameters.

Usage

  • print(Market_Scraper( "Dreams & Nightmares Case", category=Category.ANY.value, currency=Currency.EUR.value))

  • print(Market_Scraper( "paw", quality=CS2Qualities.FACTORY_NEW.value, category=Category.STATTRAK.value, weapon=CS2Weapon.AWP.value, currency=Currency.USD.value))

  • print(Market_Scraper( "Paris 2023 Anubis", category=Category.SOUVENIR_PACKAGE.value, currency=Currency.GBP.value))

Configuration

  • Data.py: Contains the data for function parameters.
  • MarketScraper.py: Contains the parsing function.
  • test_MarketScraper.py: Contains the tests for the parsing function.
  • main.py: Contains examples of using the parsing function.
  • all_replacements.json: Required for the parsing function to work, containing necessary replacements.

Examples

  • Any Dreams & Nightmares Case, Correct Price: 0,99€.
  • Stattrak™ Paw (Factory New), Correct Price: $14.00.
  • Souvenir Package Paris 2023 Anubis, Correct Price: £1.58.

Testing

  • For tests, it is recommended to pause between tests of the parsing function and to overestimate some parameters, such as time to life (ttl).

Contributing

  • You can suggest any improvements to the code. Contributions are welcome!

TODO

  • To redo the implementation of replacements (For example, to remove some unnecessary replacements, it is possible to revise the storage location of the replacements.

Contact Information

  • tg: @randomprogrammer