This is a Python script that fetches the current price of items from the Steam Community Market. It uses the BeautifulSoup library to parse the HTML content of the Steam Community Market website and the requests library to send HTTP requests.
Before running the script, make sure you have the following Python packages installed:
requestsbeautifulsoup4fake_useragent
You can install these packages using pip:
pip install requests beautifulsoup4 fake_useragentBefore you run the script, you will need to fill in a txt file that contains the URLs of the items that you want to find and is located in your input folder. Every url should be in a new line. This is content of the sample file:
https://steamcommunity.com/market/listings/730/CS%3AGO%20Weapon%20Case
https://steamcommunity.com/market/listings/730/Kilowatt%20Case
After that, you can run the script using the following command:
python main.pyThe script accepts command-line arguments:
--items_data: Name of the item you want to search for. Default is sample.txt.
--currency: Currency in which the price will be displayed. Default is USD. For more information about the currencies, please visit: Steam Pricing Currencies
--delay: Delay between end of one request and start of another. Default is 1.5 second.
You can run the script with the specified arguments by using the following command:
python main.py --items_data sample.txt --currency USD --delay 1.5After running the script, the output will be saved in txt files in the output folder. The name of the output file will be the same as the input file + date and time of the script execution. The output will contain the name of the item, url, lowest sell and highest buy price.
This project, like the libraries it uses, is under MIT license. See the LICENSE file for details.