Skip to content

01001011-01000100/Steam-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steam Parser

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.


Prerequisites

Before running the script, make sure you have the following Python packages installed:

  • requests
  • beautifulsoup4
  • fake_useragent

You can install these packages using pip:

pip install requests beautifulsoup4 fake_useragent

Usage

Before 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.py

The 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.5

After 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.


License

This project, like the libraries it uses, is under MIT license. See the LICENSE file for details.

About

Python project that uses BeautifulSoup and requests libraries to fetch and process current price data of items from the Steam Community Market. It accepts command-line arguments to specify the file with item URLs, display currency, and delay between requests.

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages