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.
- Parses the minimum price of an item in different currencies by its name and additional parameters.
-
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))
- 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.
- 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.
- For tests, it is recommended to pause between tests of the parsing function and to overestimate some parameters, such as time to life (ttl).
- You can suggest any improvements to the code. Contributions are welcome!
- To redo the implementation of replacements (For example, to remove some unnecessary replacements, it is possible to revise the storage location of the replacements.
- tg: @randomprogrammer