Coder Social home page Coder Social logo

sotolko / csgo-market-sniper Goto Github PK

View Code? Open in Web Editor NEW
87.0 7.0 28.0 43 KB

Bot that monitors desirable skins and will automatically buy them

License: GNU General Public License v3.0

Python 100.00%
csgo csgo-skin steambot steammarket csgo-market csgoskins steam steam-market-search steam-market steam-marketplace

csgo-market-sniper's Introduction

CS:GO Market sniper


alt text alt text alt text


This bot will monitor skins of your choice, and then purchase them automatically. At the moment it works only with CHROMIUM BASED BROWSERS! This bot will not work with stickers and cases, keep this in mind. (You can check what is planned at the bottom of README). Also consider that I'm working on this project alone, so there's a chance that something won't work as it should. If you find a bug, open a ticket in the issue and I'll try to fix it.

Features

  • Skin monitoring
  • Automatic purchase
  • Logging into file after purchase
  • You can choose specific patterns or floats for bot to find
  • Buy only skins with/without stickers
  • You can set max price for skin
  • You can set max pages to look for

Dependencies

Selenium, PyYAML, Requests, chromedriver-autoinstaller

pip install -r /path/to/requirements.txt

Usage

Open settinngs/config.yaml file ,and fill this file based on example provided.

# Example configuration file for program

skins:
  - url: https://steamcommunity.com/market/listings/730/MP7%20%7C%20Army%20Recon%20%28Field-Tested%29
    float: # Leave empty for ANY
    price: 100 
    number_of_stickers: # Leave empty for ANY
    pages: 2
    pattern: 502, 800
  - url: https://steamcommunity.com/market/listings/730/UMP-45%20%7C%20Urban%20DDPAT%20%28Factory%20New%29
    float: 
    price: 
    number_of_stickers:
    pages: 2
    pattern: 123

Then, start the program

python csgo-market-sniper.py

Chrome window with steam login page will open. LOGIN INTO STEAM FIRST!


Planned

  • Setting to buy higher than set float skin, not lower only.
  • Buy stickers, cases, agents etc.

csgo-market-sniper's People

Contributors

sotolko avatar tomomimo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

csgo-market-sniper's Issues

Bought wrong pattern

It bought the wrong patterns:

skins:
  - url: https://steamcommunity.com/market/listings/730/AWP%20%7C%20PAW%20%28Factory%20New%29
    float: 
    price: 7
    number_of_stickers: 
    pages: 3
    pattern: 420
  - url: https://steamcommunity.com/market/listings/730/Five-SeveN%20%7C%20Kami%20%28Factory%20New%29
    float: 
    price: 2
    number_of_stickers:
    pages: 10
    pattern: 909
  - url: https://steamcommunity.com/market/listings/730/StatTrak%E2%84%A2%20Five-SeveN%20%7C%20Kami%20%28Factory%20New%29
    float: 
    price: 6
    number_of_stickers:
    pages: 4
    pattern: 909

image

Is my config wrong?

Price

price in $ or in cents?
Is it convertable for lacal currency?
OR does it automaticlly puts price as currency depicted on steam
thx for help

Order amount controls

Is there a way to specify the exact amount i want to buy? Or would it just try to buy until there's nothing left on steam balance

Error when installing requirements

zsh: /usr/local/bin/pip: bad interpreter: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

When i do "pip install -r settings/requirements.txt", why is this?

Can you create guide to use/setup

Sorry im new to coding/programming, i really want to use this bot but im struggling, could you add me on discord to help or make a guide?
thanks

[Suggestion] We need proxies

Hi guys. first i want to thank you both for this project. the bot is really good.

Can you please add the ablity to use proxies for each update request (rotating through proxylist (line 1, 2, 3 etc.) for each request on steam market)?

Thank you.

Info on pricing

With the pricing will it buy anything under the price you have set or only the one buy things at the price you have set

After pressing enter problem

зображення
After pressing enter, the browser window just closes and I'm left with only the cmd window shown in the screenshot, what is this problem and how to solve it?

Very interesting question

I can not specify the allowable float and pattern, but specify that there are 4 stickers and the maximum price, will he buy only these parameters?

Instant Stop

Stops on Start-Up, might be a URL/Float issue not sure.
7SuZnNuhxK

Chrome opens and closes and gettings errors

So I wanted to test the script but I've gotten a bit stuck.
I've done pip install requirements. And edited the config file with this: skins:

And then started the program with python csgo-market-sniper.py. A Chrome window will open for a second and then it will close. This is the tracebacks I got

Loading config file...
Traceback (most recent call last):
File "C:\Users\stefa\Desktop\csgo-market-sniper-main\csgo-market-sniper.py", line 9, in
url_info = load_config()
^^^^^^^^^^^^^
File "C:\Users\stefa\Desktop\csgo-market-sniper-main\config.py", line 7, in load_config
config = yaml.safe_load(f)
^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml_init_.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml_init_.py", line 81, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\constructor.py", line 49, in get_single_data
node = self.get_single_node()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 36, in get_single_node
document = self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 55, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 111, in compose_sequence_node
node.value.append(self.compose_node(node, index))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 64, in compose_node
if self.check_event(AliasEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 115, in check_token
while self.need_more_tokens():
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 152, in need_more_tokens
self.stale_possible_simple_keys()
File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 291, in stale_possible_simple_keys
raise ScannerError("while scanning a simple key", key.mark,
yaml.scanner.ScannerError: while scanning a simple key
in "settings/config.yaml", line 8, column 5
could not find expected ':'
in "settings/config.yaml", line 9, column 5
PS C:\Users\stefa\Desktop\csgo-market-sniper-main> python csgo-market-sniper.pypython csgo-market-sniper.py

!requested feature adding timer

Hello sotolko,
First I would like to thank you for this great program, and I would like to see you add feature as timer , like make the user specify how many minutes needed for the bot to check the market "like making the bot check the market every random time between 20-60 minutes" , and give the bot random delay to buy item between 1-5 seconds

about price

My country uses a different currency than $ so should i use put price as unit wise?

Malwarebytes detected a "Malware.Heuristic.1001"

As soon as i tried to launch the script MalwareBytes intervened and blocked a "threat" : chromedriver.exe
in the location C:\Users\Asus\AppData\Local\Programs\Python\Python311\Lib\site-packages\chromedriver_autoinstaller\112\chromedriver.exe
Is it a false positive or a real virus, can you please reassure and convince me if it's not.

ps: I'm from a thirdworld country, it's really tough out here and i'm desperate to make a quick buck from online sources such as steam market, it would really suck if my laptop and data get hijacked with viruses and spyware.
Capture

Terminating Scripts

Is it possible to loop a function that refreshes the page when the script can't continue, so that when a steam error happens it doesn't terminate the script it just keeps retrying? I know this works in other script codes, but I'm not sure about py.

Float bug.

I set a float of 0.15 or 0.16 The bot does not pay attention to the set values.(If you need, i can create video)
image
image
image

script closing after a few minutes

hello, i've set my config to monitor 7 items on 20 pages each, and i leave script for a few minutes and i see its closed every time. what's the solution?

Logging In Constantly

Sorry again, how do I make it launch from my own google account that is already logged into steam (it's fine if you cant). And is there a way of making it do float ranges like 0.95-1 because I'm looking for higher floats. Thanks :).

How does float work?

When you input a float, does it set it to be the float and under or just the exact float, same thing with price

Help

I'm not a programmer but I want this program. Could someone help me install this program? Whoever helps me will also receive a financial reward.

4 Quick Questions

Can you do less than a certain float or less than a certain price because for example when I type <0.03 in the config part and then run the program it gives an error whereas when I do with just a decimal/integer it works. So does anyone know a way to do less than or greater than a certain price or float?

Do you have to keep the steam browser and python open for it to work after you have ran the program or can you close them and have it run in the background?

Thirdly, how will the program buy any skins if the billing address on steam hasn't been set and filled in or do I have to do that
myself and if so how?

Finally, it currently uses chrome can I change it to another Chromium based browser and if so how?

Any help will be very appreciated
Thanks.

Doubt Regarding Currency and Pattern

Hi could be please tell me which currency is being used in code or is it just a variable?
Also please tell me that is it ok to leave pattern value empty if im ok with any pattern?

Max Price

is the price in config including the decimal or not eg: is $25 = 25 or $25 = 2500

429 Client Error: Too Many Requests for url

Hi I run the program and then I get hit with a stop due to

Traceback (most recent call last):
File "C:\Users\kitch\Documents\GitHub\csgo-market-sniper\csgo-market-sniper.py", line 31, in
check_whole_page(count, url_info)
File "C:\Users\kitch\Documents\GitHub\csgo-market-sniper\functions.py", line 159, in check_whole_page
item_name, item_float, item_pattern, whole_json = save_json_response(btn)
File "C:\Users\kitch\Documents\GitHub\csgo-market-sniper\functions.py", line 202, in save_json_response
response.raise_for_status()
File "C:\Users\kitch\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api.csgofloat.com/?url=steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M4313927967666358717A29862318717D2315455664352767148

Could this be to the new issues with Steam restricting floatdb to so many inspects?

in-depth guide

any chance i could get an in-depth guide on how to set this up and use it? my knowledge on python isn't too broad, i would be willing to pay for your time, let me know.

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.