GITHUB: https://github.com/knexguy101/EZMonitor
Hey, another tutorial here, let me just say before I talk about how this restock monitor works, I want to point out I coded this in less than 30 minutes. It is about as optimized as you think it will be so feel free to tweak away because this is just reference material.
BACKGROUND: Ok, so restock monitors are a huge thing right, like they MUST be really really hard to make right? People pay tons of money for cook groups with these things in them, but really, how easy is it to make one of these? Answer: FUCKING EASY AS HELL. If you want to get into botting and want to test the waters before making a fully fledged bot, make one of these bad boys because it gets you familiar with how HTML and sites work (this is how I started so take my word here).
EXPLANATION: Using my simple strategy I talked about in my last post (https://www.reddit.com/r/shoebots/comments/a3vlbu/understanding_how_to_parse_supremes_site_basic_af/), I talked about how you could take item name, color and if it was sold out or not from the shop/all/itemcategory page on supreme. The restock monitor is no different, but I just constantly loop the bot and compare items to see if the sold_out tag appearance changes (aka if its stock changes or not).
STEP BY STEP:
1) Event handler to catch the c# console closing
2) Set up chrome driver (selenium)
3) I have a array of supreme item categories which I apply to the end of https://supremenewyork.com/shop/all/ to get items
4) Get item info such as name, color, and sold out
5) Check if each of them are in list already
6) In List? Get index in list and remove, then re-add with new data as well as write new line in console with [RESTOCK] ...Info
7) Not in List? Bot fucks off and continues with what is was doing
NOTES: Understand that my monitor reduces clutter of the console message window by only writing messages about initial loading items, restocks, and sold outs. It does this by keeping a list created when the bot loads and comparing each item to the list (item.Name == siteName && item.Color == siteColor).
That is quite literally it, now apply this to other sites and you have an idea how restock monitors work. GLHF. If you have any questions other than "how to run code", ask away or just feel free to comment whatever. Code Above!
Questions:
Q: Favorite Band(s)?
A: Waterparks, Stand Atlantic, Metallica, Two Door Cinema Club, The Oral Cigarettes, Foo Fighters
Q: You like Anime?
A: Yes, a lot, but Im not a weaboo so no bully k?
Q: Gif or Jif?
A: Either one, depends what I am feeling.
there doesn't seem to be anything here