Creating a Shopify Shoe Bot in Python - [Part 1 Monitoring Shopify API]

Поділитися
Вставка
  • Опубліковано 26 вер 2024

КОМЕНТАРІ • 141

  • @kittyyqin2174
    @kittyyqin2174 5 років тому +42

    This is a video I need right now! Can't believe I am learning to code because of copping sneakers. Just started with the python basics but hopefully, I can build it up in the next month.

    • @straightcode
      @straightcode  5 років тому +4

      Hopefully, it works out awesome for you. Happy coding!:)

    • @1skeeta4u
      @1skeeta4u 5 років тому

      I'm open to explore ideas. I'm opening up to python day by day and see the possibilities.

    • @lukerhoads
      @lukerhoads 4 роки тому

      Nice!

    • @at_flyy6553
      @at_flyy6553 4 роки тому

      haha. Me too! hows it going?

    • @kittyyqin2174
      @kittyyqin2174 4 роки тому +7

      @@at_flyy6553 Update a little about my botting journey. I spent like a week on coding and eventually made it. However the thing was useless (no proxy option, very bad speed, and frequently dysfunctional for no reason). Then I went straight on buying bots like anb, nsb, eve, cyber, and whatbots. In the first two months, I got the sneakers I want with original price and eventually earned several thousand bucks from reselling. But things went downhill when more and more people joined the game. It's like the Gold Fever season, not enough gold for everyone. I paid a lot on maintaining my tools (proxies, servers, cook groups, bot subscriptions, etc.) every month regardless of the fact that I was constantly losing money. After 4 months of part-time botting, my passion faded and I had to face the fact that I can't buy enough shoes to cover my cost. So I sold all my stock and quit during Christmas (glad I did that!!!!!). Now when I look back, I found the game a pure involution with a very low technical doorsill. I only earned my money at first, the rest of the time was struggling not to lose money. But I was still kind of lucky, as one of my friends (a big sneakerhead) nearly got bankrupt during the Cov-19 season. lol in a word, just pay the damn price, don't be me.

  • @MrCleaN-ls6qz
    @MrCleaN-ls6qz 4 роки тому +6

    Not trying to discourage anyone from learning Python or bring any negativity to the video. Maybe two to three months ago I started here too, because sneaker bots are expensive so why not just make my own. But the thing is, python just is not quick enough for a sneaker bot. Using AutoHotKey with image recognition to click buttons cuts 3/4's of the time this bot would take to checkout, and is a lot easier to code. A lot easier. Now of course that's a kind of jerry rigged approach, but it does what it's supposed to do faster than you or I can do it.
    If you still want to know how to make a sneaker bot as fast as the top ones, you're gonna have to move completely away from looking at the browser and figure out how to send requests to the website without visibly seeing it on the browser. And no I don't mean running a headless browser. You're also gonna need something faster than Python like NodeJS. But is it worth doing all of this? As a learning experience sure. If you're trying to make money and learning how to code doesn't necessarily benefit you, then I'd have to say fuck no. Buy a bot and spend time learning about Proxies and such, and other things you'll need to run that bot as effectively as possible. Your time is literally money in the reselling world, and the intricacies of making a successful diverse bot is an undertaking that you would need the equivalent of a comp sci degree in knowledge for. Not that it's impossible to gain that knowledge. You could teach yourself or just go to college for it lol. But do you really want to bury time and effort into that is a question you should ask yourself first.
    This tutorial still has it's benefits other than that though. It basically gives you a blueprint of sorts to make a shopify monitor. Do with that what you may.

    • @jacobadams1918
      @jacobadams1918 4 роки тому

      Thank you! can we maybe speak about monitors? Im needing some help. Add me on discord @vAuoi

    • @connorrichardson3628
      @connorrichardson3628 4 роки тому

      definitely wrong. you can build a quick enough implementation in python, but in 2-3 months you're not going to gain near the expertise you need to write it out

    • @bicboi46
      @bicboi46 4 роки тому

      @@connorrichardson3628 whats your success been so far (assuming you have fully working python bot)?

    • @christopherscotto8789
      @christopherscotto8789 4 роки тому

      you can make a fast bot with python, look at project destroyer with it being one of the top sneaker bots as of rn. It just takes time, patients, and a learning path that most people dont understand or dont want to do. There is a ton of helpful information in these videos and highly recommend to continue watching them for a learning experience but the main thing id stay away from is selenium. Easily can be detected from the site your botting and is slow. I personally am making my own bot not just cause it might make me money, but because i enjoy it. If your just doing it for money id say stop and look up how to make google cloud proxies to make easy money and stop wasting your time.

    • @jazer1370
      @jazer1370 3 роки тому

      @@christopherscotto8789 does project destroyer made on python? What other bot is made on python?

  • @darkfantasy437
    @darkfantasy437 4 роки тому +1

    great video! I love that you guys explained the logic in the beginning, but I did have to go back a few times to process it b/c you kind of breezed through that point.

  • @donaldhu2392
    @donaldhu2392 4 роки тому

    OMG, You guys are AMAZING !!! The most helpful shoe bot building video I've ever seen!! Thanks!!

  • @corbinm1514
    @corbinm1514 4 роки тому +34

    Its September 2020 and im going to learn python just to beat the RTX 3080 botters. Thanks for the information

  • @EnAyeVeePee
    @EnAyeVeePee 4 роки тому +1

    Thank you so much! Very clear explanation, this was so helpful

  • @rodrigo2952
    @rodrigo2952 5 років тому +1

    Very good video, I needed some tutorials in Python

    • @straightcode
      @straightcode  5 років тому

      Make sure and stay tuned part 2 will be post today or tomorrow!

  • @zinuoxie565
    @zinuoxie565 5 років тому +2

    Great video! Tutorials like this is definitely more engaging to watch :D

    • @straightcode
      @straightcode  5 років тому

      Thank you so much! Part 2 will be posted later today or tomorrow.

  • @derekolson1615
    @derekolson1615 5 років тому +5

    Hi I was trying to get in contact but realized UA-cam removed DMs. I'm curious if you use this bot for actual reselling and if so what is your success like? I work as a software engineer so these bots really intrigue me. I want to try and build the best bots possible. My goal is to make reselling/copping what people want to be easier and more fair for everyone. I think everyone deserves a chance!

    • @chefdan_
      @chefdan_ 4 роки тому

      have you made a bot?

  • @0002nicejay
    @0002nicejay 4 роки тому +2

    The Requests documentation link doesnt work

  • @nycstev428
    @nycstev428 3 роки тому

    yall are awesome

  • @damians06
    @damians06 5 років тому

    I love these videos I knew absolutely nothing about coding before watching these videos but you made it very easy to follow. I’m going to try and create one for the fun of it. I have so many questions though does this method only work if you have the product url or is there a way to search for keywords and also is there a way to add a captcha solver to this or a method to have captchas pop up when asked to solve for them?

  • @3vryangle
    @3vryangle 4 роки тому +5

    Help !, the request documentation is no longer available

    • @natec7838
      @natec7838 4 роки тому

      have u figured out something to replace it with im trying to code. a bot aswell lol

    • @antoinegrimard1051
      @antoinegrimard1051 4 роки тому

      Nate Camiolo how did you success to replace it? With which module?

    • @crazyforcards
      @crazyforcards 4 роки тому

      @@natec7838 Any progress?

    • @jamesleed-zwolenski5566
      @jamesleed-zwolenski5566 4 роки тому

      ​@@natec7838​solution: (worked for me) go to CMD (run as administrator just in cast) type pip install requests, then open python i found version 3.73 worked for me and then it should work along with selenium/chrome driver

  • @Milo1267
    @Milo1267 3 роки тому +2

    When executing the code at 6:21, this error shows up.
    Traceback (most recent call last):
    File "C:\Users\Milom\OneDrive\Documents\Coding\Python\shopify bot.py", line 6, in
    products = json.loads((r.text))["products"]
    File "C:\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
    File "C:\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "C:\Python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    [Finished in 0.6s with exit code 1]
    What can I do to fix it?

    • @tfeksport
      @tfeksport 3 роки тому

      if you hv please share how u fixed this problem

  • @eliasgarcia1520
    @eliasgarcia1520 4 роки тому +1

    How do I get the url with the json If some of the sites dont let u have it all together

  • @dcwscn
    @dcwscn 5 років тому +1

    great video

  • @davide9803
    @davide9803 4 роки тому +1

    requests is not aviable

  • @BellamieP
    @BellamieP 4 роки тому +1

    @straight_code can u set up a discord webhook?

  • @Wabuh-Wabuh
    @Wabuh-Wabuh 3 роки тому

    u guys left the hard part out where the s for checkout....

  • @alien01_
    @alien01_ 4 роки тому +2

    I only receive the first 31 products, then the list ends. Why is this happening?

    • @Teefadez
      @Teefadez 3 роки тому

      I cant get passed this part

  • @nowski5753
    @nowski5753 4 роки тому

    So what if you don't know the name of the product but know the date and time of the store going live, can the code be altered to buy any available products on a url? FYI this isnt for sneakers

  • @spintex4014
    @spintex4014 4 роки тому +1

    For me it keeps saying that the 'products' is a KeyError when I enter it in square brackets after the json.loads, can you help??

  • @PuddingMaaan
    @PuddingMaaan 4 роки тому

    Can I do this on my raspberry pi 4? I have thonny python ide, is that sufficient?

  • @Dopeboyz789
    @Dopeboyz789 4 роки тому +1

    Can this be done with a shoe retailer store like footlocker

    • @Dopeboyz789
      @Dopeboyz789 3 роки тому

      @LiteEagle do you know the code

  • @Nick-bs5vz
    @Nick-bs5vz 4 роки тому

    The request document is no longer available please help!!

  • @tcshotit2745
    @tcshotit2745 4 роки тому

    Hey Request Documentation link isn't working, will it be fixed ?

  • @gregv2684
    @gregv2684 4 роки тому

    Awesome video! Is this pypi.org/project/requests/ the correct link to the PyPI requests download? Kind of new to Python so I don't really know what the correct thing to download is haha.
    Thanks!

    • @straightcode
      @straightcode  4 роки тому +1

      Hi Greg. Seems like for whatever reason that link didn't take me anywhere.
      If you are trying to get requests though, make sure to install it with pip. 'pip install requests'

  • @skidak541
    @skidak541 4 роки тому

    Is it possible to make a bot to market something i sell in shopify ?

  • @codaq4043
    @codaq4043 4 роки тому

    Anything you suggest we learn to help us make something that bypasses captchas etc

    • @straightcode
      @straightcode  4 роки тому

      2captcha would be my recommendation. It can be a tricky service to figure out though.

  • @Juliapak
    @Juliapak 5 років тому +4

    Hey just curious how did you find the .json ?

    • @ikechinwankwo7993
      @ikechinwankwo7993 5 років тому

      am wondering this too. Like how are we supposed to do this for other sites if we don't know how to get the json

    • @Juliapak
      @Juliapak 5 років тому

      @Gowther but what if its not a shopify site I'm applying this logic to? Is there some sort of generalized method to find a sites .json files?

    • @Juliapak
      @Juliapak 5 років тому

      @Gowther what if you have the sitemap.xml? I guess I'll look at that and see if I can find anything via a search on the sitemap page. I'm just trying to apply some of the logic from this video to the task I wish to accomplish :)

    • @Juliapak
      @Juliapak 5 років тому

      @Gowther so that would list the json file?

    • @yodalai760
      @yodalai760 4 роки тому

      @Gowther what if its on footlocker? what would i need to do to access the .json

  • @John-xm7ei
    @John-xm7ei 5 років тому +1

    I cant Go with Json on Websites,which Doesnt named feature...😂 do you have a Solution ?

  • @mariscoselruben257
    @mariscoselruben257 5 років тому +1

    bro i been here 4 hrs lol

    • @straightcode
      @straightcode  5 років тому

      Keep up to good work! Let me know if you have any questions. Also, if you get stuck you can go to stackoverflow.com to seek solutions for similar issues.

  • @whaweh88
    @whaweh88 4 роки тому

    How do I access products.json when a website is password protected, but I have the password?

  • @ErickG
    @ErickG 5 років тому

    I'm pretty new to this. So, what's the difference between using json and bs4? Just a different way to achieve the same result? My question might not make any sense. :D

    • @straightcode
      @straightcode  5 років тому +1

      Well basically what beautiful soup is doing is allowing us to move around either a json structure or an html doc.
      You can think of it like this. Json in a sense is like a file format. What beautiful soup allows us to do is search and traverse the file format.

    • @ErickG
      @ErickG 5 років тому +1

      @@straightcode Makes sense. I appreciate it! Thanks again for the videos. I look forward to learning more with you all.

  • @pttrtradingcards7478
    @pttrtradingcards7478 5 років тому +7

    what if the product hasnt been released yet?

    • @wama.89
      @wama.89 5 років тому +4

      im currently working on a supreme autocop bot. you could use something like
      products = driver.find_element_by_link_text("product name"])
      by this comment you are searching for a certain text on the page, if its found you could do .click() which makes it click the link behind the product name. this would be a different system because if the product name is not found you should use driver.refresh() which refreshes the page.

    • @maclanphere5674
      @maclanphere5674 4 роки тому +2

      @@wama.89 I ended up with 13 pallets of adult diapers, how to re-sell?

    • @chefdan_
      @chefdan_ 4 роки тому

      @@wama.89 hows it going?

    • @wama.89
      @wama.89 4 роки тому

      @@chefdan_ its working, but it has timing isseus, for example if supreme site lags it doesnt wait until its loaded, but it just counts to for example 3. if the site has more lagg than those 3 secs it gives an error and freezes

    • @chefdan_
      @chefdan_ 4 роки тому

      Wam A. If you need any testers hmu

  • @KevKemp87
    @KevKemp87 4 роки тому

    Can this be used for adidas app and yeezysupply?

    • @natec7838
      @natec7838 4 роки тому +1

      no both of those r splash pages this is for shopify

  • @kamitube1059
    @kamitube1059 4 роки тому

    At this step 6:25
    i am getting "NameError: name 'request' is not defined" on vscode. Can someone please help

  • @xxnifty4631
    @xxnifty4631 4 роки тому

    how can i add discord webhook? is it in tutorial?

  • @ScreamingEagle
    @ScreamingEagle 5 років тому

    not sure if i am too late but i have been trying out .json on various shopify websites and all that shows up is very little code. I am very new to concept of webscraping and know .json is a file type? Anyways did shopify websites update like their framework or what on earth is going on? I am quite confused XD

    • @ScreamingEagle
      @ScreamingEagle 5 років тому +1

      ok i may have found the problem i need to do "nameofstore.com"/products regardless of how the website was organized. for example i did feature.com/products and when i visisted this specific link nothing shows up but when i add .json to the end, it magically lists all products for this website

  • @jackeye5368
    @jackeye5368 4 роки тому

    can you fix the request documentation link

  • @jackupton1157
    @jackupton1157 3 роки тому

    how do i install requests

    • @Teefadez
      @Teefadez 3 роки тому +1

      Put this into your command line.
      $ python -m pip install requests

  • @John-xm7ei
    @John-xm7ei 5 років тому

    If I make the json File it only appears one product of the site, do you know, what is the Problem? Thank you

    • @Leo-qs9tz
      @Leo-qs9tz 5 років тому

      Yes, you're an Idiot- most likely ✌️"

    • @John-xm7ei
      @John-xm7ei 5 років тому

      @@Leo-qs9tz yeah i know, but i've fixed it, do you need the fix?

    • @Leo-qs9tz
      @Leo-qs9tz 5 років тому

      @@John-xm7ei Ich bins das weißt du schon

    • @John-xm7ei
      @John-xm7ei 5 років тому

      @@Leo-qs9tz Ne,habe ich ja nicht an deinem Namen gesehen 😂🤷‍♂️

    • @ishans.7388
      @ishans.7388 4 роки тому

      @@John-xm7ei sure, I'll appreciate if you share the fix

  • @crazyforcards
    @crazyforcards 4 роки тому

    Is there a way to get the requests documentation? Link no work

    • @CrackedTea
      @CrackedTea 4 роки тому

      same problem. Is there a new link?

    • @crazyforcards
      @crazyforcards 4 роки тому

      @@CrackedTea try installing using pip or pipenv. I went to command prompt, and typed "pip install requests" and " pip install selenium".

    • @CrackedTea
      @CrackedTea 4 роки тому

      botmaster ok thank you

  • @jakep7980
    @jakep7980 3 роки тому

    How to do this with node js?

    • @jakep7980
      @jakep7980 3 роки тому

      @Chase P I figured it out

  • @kxngclxwn
    @kxngclxwn 4 роки тому +1

    does this work on discord?

    • @jamesleed-zwolenski5566
      @jamesleed-zwolenski5566 4 роки тому +1

      if you are skilled enough you could integrate some code that allows the discord bot to connect online and then attach it to this code so when a a command is type for example "!run monitor www.blahblah.com it will gather the information and display it to the user or even automate it even more"

  • @tacoyagmur
    @tacoyagmur 3 роки тому

    Is this still up to date? Like is it working today?

    • @Ava001
      @Ava001 3 роки тому +1

      Perhaps, but not all of it cos of the new anti bot stuff yk

    • @shoebot0
      @shoebot0 2 роки тому

      @@Ava001 If you want to create your own sneaker bot please check this:
      ua-cam.com/channels/TYXT-TktUaYZgbKkVZBsFw.html

    • @shoebot0
      @shoebot0 2 роки тому

      If you want to create your own sneaker bot please check this:
      ua-cam.com/channels/TYXT-TktUaYZgbKkVZBsFw.html

  • @MrJwilson913
    @MrJwilson913 4 роки тому

    im having issues wit the json step ! lol i cant see the json on the page shop.rarbrewing.com/

    • @alien01_
      @alien01_ 4 роки тому +2

      It only works on shopify sites

  • @NukeDDuck-np5ye
    @NukeDDuck-np5ye 4 роки тому

    i cant get passed the first step lol it says no module named requests

    • @NukeDDuck-np5ye
      @NukeDDuck-np5ye 4 роки тому

      the link inst working to install import requests

    • @straightcode
      @straightcode  4 роки тому

      do this:
      import requests
      at the start

    • @NukeDDuck-np5ye
      @NukeDDuck-np5ye 4 роки тому

      straight_code same issue no module named requests

    • @straightcode
      @straightcode  4 роки тому

      ​@@NukeDDuck-np5ye okay sorry. So that's because you don't have the module on your computer. To get the module you have to install it to your python library.
      I used
      pip install requests
      So, for you, you need to go to your anaconda prompt or you command prompt window do pip install the module. For the exact command, you can check out this post here( I don't know if you are using python 2 or 3)
      stackoverflow.com/questions/30362600/how-to-install-requests-module-in-python-3-4-instead-of-2-7

    • @NukeDDuck-np5ye
      @NukeDDuck-np5ye 4 роки тому

      @@straightcode is this website pypi.org/project/requests/

  • @JoggerJoel
    @JoggerJoel 5 років тому +2

    The best thing I learned was /products.json; I only know magento :(

  • @BfoSHIZnats
    @BfoSHIZnats 3 роки тому

    The amount of effort people put in to just trying to buy a product online is fucking ridiculous.

  • @fuckwithme
    @fuckwithme 4 роки тому

    Do you guys create bots ? I need a bot made .. please contact me

    • @ishans.7388
      @ishans.7388 4 роки тому

      I make bots, contact me on discord: Torpedo#6680

  • @quwinkinloch1225
    @quwinkinloch1225 4 роки тому

    hey trust that your well i keep receiving this error products = json.loads((r.text))['products']
    Traceback (most recent call last):
    File "", line 1, in
    products = json.loads((r.text))['products']
    KeyError: 'products'

  • @womaster6816
    @womaster6816 5 років тому

    can I put this into a discord webhook so i get noti

    • @yurdo
      @yurdo 5 років тому

      WoMaster yes

  • @detroilions11
    @detroilions11 5 років тому

    You're the best.... Yay