Giter Site home page Giter Site logo

yasserqureshi1 / sneaker-monitors Goto Github PK

View Code? Open in Web Editor NEW
462.0 46.0 125.0 2.14 MB

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!

License: GNU General Public License v3.0

Python 100.00%
discord-webhook sneaker-monitors supreme snkrs shopify-monitor supreme-monitor shopify footsite footsite-monitor monitor

sneaker-monitors's Introduction

πŸ‘‹ Hello! I'm Yasser!

Blog β€’ Linkedin β€’ Twitter


  • πŸ‘¨β€πŸŽ“ PhD Student @ University of Warwick
  • 🦟 Interested in applying AI/ML to mosquito trajectories to understand their behaviours
  • πŸ’Ό Previously interned at IBM and Barclays
  • 🌍  I'm based in the United Kingdom
  • πŸ–₯️  See my website here


My GitHub Stats

yasserqureshi1's GitHub stats

sneaker-monitors's People

Contributors

adityasanehi avatar bhavikmalhotra avatar bogdankatishev avatar dependabot[bot] avatar http-samc avatar kacperkwapisz avatar yasserqureshi1 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  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  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

sneaker-monitors's Issues

Monitor setup bug

requirements file not working

root@vps66937 [/home/sneake28/mon1/Sneaker-Monitors]# pip install -r requirements.txt
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
load_entry_point('pip==21.0.1', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")

Expired Discord Link

Hello, can you please provide me/us with a new discord link? Somehow the other one does not work.

Nothing gets sent on discord (for SNKRS and Footsites)?

Hey I added my webhook on both footsites and SNKRs and I have had then running for about 8 hours now, I can see the logs saying successfully scraped site etc but in the 8 hours there has been nothing coming through on my webhooks. I checked a SNKRs monitor in a group I am in and they have had several posts today. Any idea?

Request for Footlocker MY (Malaysia) or SG (Singapore) Monitor

I tried to modify the code from "FootlockerUSMonitor", but I don't think it will works.

Repeated error in log shown
urllib3.connectionpool - Starting new HTTPS connection (1): www.footlocker.my:443
urllib3.connectionpool - https://www.footlocker.my:443 "GET /en/men/shoes/ HTTP/1.1" 200 24530
... repeat

What I changed:

  1. proxyObject = FreeProxy(country_id=['MY'], rand=True)

  2. embed['url'] = f'https://www.footlocker.my{product_item[3]}' # Item link

  3. try:
    html = s.get('https://www.footlocker.my/en/men/shoes/', headers=headers,

Please kindly update the release, thank you :D

attribute error

Hi again, i've got another issue on the shopify monitor after it was seemingly working okay.

['Nike Air Jordan 1 Mid', [['UK 8 : US 9']], 'https://cdn.shopify.com/s/files/1/2031/6995/products/554724074_1.jpg?v=1606411683', 'nike-air-jordan-1-mid-554724074']
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\Sneaker-Monitors-master\Shopify\ShopifyMonitor.py", line 174, in <module>
    ShopifyMonitor(url=CONFIG['URL'], webhook=CONFIG['WEBHOOK'], proxy=CONFIG['PROXY']).monitor()
  File "C:\Users\Administrator\Desktop\Sneaker-Monitors-master\Shopify\ShopifyMonitor.py", line 166, in monitor
    self.discord_webhook(product_item)
  File "C:\Users\Administrator\Desktop\Sneaker-Monitors-master\Shopify\ShopifyMonitor.py", line 89, in discord_webhook
    description = description + str(product_item[1][i].replace(' : ', '/')) + '\t\t'
AttributeError: 'list' object has no attribute 'replace'

Looks like its trying to replace something on a list?? which it cant do?

Installing

When i type in "pip install -r requirements.txt" it says that pip is not a known command ?

Issue with command

When I type in the command in cmd I get ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
The txt is there so what would be a solution?
Thanks!

(nvm, I got it)

Apply it on Brazil SNKRS sites

Hi!

I'm from Brazil! I liked your project and I think it would be useful here. I'll be glad to contribute with the project.

SSl bug

Hello,

Nice scripts/bot's. I get an error while trying to start the SNKRS monitor:

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)

Did I something wrong?

datetime issue

The monitors work great but the date time on the embed was like 5 hrs off. fixed it by adding

from datetime import datetime

and implementing the code

str(datetime.utcnow())

awsome work tho keep it up brother!!!

SNKRS monitor issue

Snkrs log is constantly sending this error

Error -  'str' object has no attribute 'items'

Any idea?

Webhook location

Hello. Where should I set my Discord webhook (for SNKRS EU monitor), because I can't see anything in line 98.
Should I set it in url or in self.webhook?

Multiple Proxies

I added a proxy, but is there a format to add multiple lines of proxies?

Sneaker Monitor

Hey man, having an issue after 'pip install -r requirements.txt'
issue

SNKRS monitor

the snkrs monitor shuts down immediately after saying payload delivered successfully

Suggestion instead of Issues

Hey!

I totally appreciate you with giving this plug. Just a suggestion: put the size and the price when tracking items from SNKRS. That'll be dope.

Thanks and cheers!

Supreme issue

When I try to build it on Heroku, this is the error I get:
image

Supreme Monitor

  1. The webhook does not have the size of any product, even though it is
  2. The monitor loops and displays goods in a circle

In the first case, I solved the problem by changing the code, the second case is more difficult

errors after running snkr monitor

I get the code 204 like everything is running fine.. even get the start message in the discord. Then in the cmd prompt I get

Error - 'objects'

Is this having to do witht the proxy not working?

Getting syntax error with proxy on all scripts

Hello there, i was trying to test this script, and noticed that im getting this error on all scripts, im i missing something? Thanks!

➜ Supreme python SupremeMonitor.py
File "SupremeMonitor.py", line 23
self.proxy = { f"http://{proxy}" }
^
SyntaxError: invalid syntax
➜ Supreme

error - 'objects'

Keep getting this error I've checked the location and it hasn't changed. I was thinking it was possibly the delay but still doesn't work

SNKRS

Can i use the SNKRS monitor in Brazil?

env

Hi I finished the installation of requirement's and I'm trying to open the env file but I don't know how to open it also when i try to open the shopify py it closes right away and says site URL incorrect

showing all products not just new ones?

I've only run the shopify one so far, but it looks like its just parsing through the info and sending every product on the site not just the updates? Is that right? Wouldn't you need to do some sort of compare to see what's new?

There was an error - main site - 'src'

Monitor starts, sends initialization webhook successfully but error's out almost immediately after

I've tried without proxies and with a couple of different providers and receive the error regardless

image

image

Place important variables in a .env file instead of in the code

Hey, I noticed a lot of the instructions for running bots look like this:
Insert a name for your bot on line 64

I think ease of usability for this could be greatly improved if we used a .env file, pushed, and then added to .gitignore so people wouldn't accidentally push their credentials

I have experience working with the python dotenv module, so if you'd assigned me to this I could do it.

connection error

Sorry for the amount of questions but a few monitors give this error:
HTTPSConnectionPool(host='www.supremenewyork.com', port=443): Max retries exceeded with url: /shop/305604.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x758eba70>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
And footlocker gives me this :
There was an Error - main site - HTTPSConnectionPool(host='www.footlocker.nl', port=443): Read timed out. (read timeout=3)

KeyError:'WEBHOOK'

C:\Users\micro\Sneaker-Monitors>python SNKRS/SNKRSMonitor.py
Traceback (most recent call last):
File "SNKRS/SNKRSMonitor.py", line 133, in
test = SNKRSMonitor(webhook=CONFIG['WEBHOOK'])
KeyError: 'WEBHOOK'

i put the webhooks in the env file and im getting this error on all monitors

NOT WORKING?

Hey in old versions monitor sent all the products instantly, I supossed that in the new code it doesnΒ΄t, but so does it work or not??

Supreme Issue

I cannot start this monitor on my local environment, i get this error:

$ python3 SupremeMonitor.py
STARTING MONITOR
Traceback (most recent call last):
File "/Users/mikehenriquez/Desktop/LECHE-MONITORS/Sneaker-Monitors-master/Supreme/SupremeMonitor.py", line 142, in
SupremeMonitor(webhook=CONFIG['WEBHOOK'], proxy=CONFIG['PROXY']).monitor()
File "/Users/mikehenriquez/Desktop/LECHE-MONITORS/Sneaker-Monitors-master/Supreme/SupremeMonitor.py", line 130, in monitor
stock = self.get_stock()
File "/Users/mikehenriquez/Desktop/LECHE-MONITORS/Sneaker-Monitors-master/Supreme/SupremeMonitor.py", line 32, in get_stock
stock = rq.get(url, headers=self.headers, proxies=self.proxy).json()['products_and_categories']
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

Im doing something wrong?

Trouble installing

ERROR: Failed building wheel for multidict
Failed to build multidict
ERROR: Could not build wheels for multidict which use PEP 517 and cannot be installed directly

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

I have a problem there is standing : DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

I have Python 3.9.1
Please help.

Shopify Monitor Bulk Notifications

Hi mate, back again.

Just wondering on the new shopify monitor it's sent about 30 notifications all at once.

I'm monitoring hanon-shop and I'm looking at other monitors at the same time and none of them seem to do this. Trying to go through the code, seems like when its checking the json against itself, it's finding a load of differences all at once??

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.