Writing a Python Script to Check If Any ACs Are Available Every 5 Minutes

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 178

  • @CSDojo
    @CSDojo  Před 3 lety +23

    Long time no see everyone! haha
    If you have any questions or just want to chat, feel free to join my Discord server here: csdojo.io/d
    EDIT - clarification:
    I turned off the notification of that channel so I won't be notified every time the bot sends a message. I'll only be pinged when there's a mention.
    I chose to send a message every time anyway just to make it easier to make sure the bot's still working.

    • @anitoons999
      @anitoons999 Před 3 lety +1

      Good morning sir. I'm from India 🇮🇳. Today is Teachers Day for us. So I wish you a Happy Teachers Day Sir 😊. You teaches us coding very well sir.

    • @rashidaakter1205
      @rashidaakter1205 Před 3 lety

      Javascript, html and css tutorial please. ....i am from Bangladesh..

    • @masternobody1896
      @masternobody1896 Před 2 lety

      best

  • @Hallden_
    @Hallden_ Před 3 lety +79

    This was awesome man! A lot more clean code than when I do projects haha

  • @erikawwad7653
    @erikawwad7653 Před 3 lety +73

    just passed my data structures and algorithms class!!!!

    • @Asuna-chu
      @Asuna-chu Před 3 lety

      Congrats

    • @erikawwad7653
      @erikawwad7653 Před 3 lety

      @@Asuna-chu thank you

    • @madhavsuri1759
      @madhavsuri1759 Před 3 lety

      Hi Erik where did you learn data structures and algorithms can you suggest where to learn and regarding which Language you completed DS,and algorithms

    • @bruce7773
      @bruce7773 Před 3 lety

      Which school ? Online ?

    • @bolt8129
      @bolt8129 Před 3 lety +1

      Great man

  • @CSDojo
    @CSDojo  Před 3 lety +8

    I was asked why I'm letting the bot spam Slack every time, and here's my answer:
    I turned off the notification of that channel so I won't be notified every time the bot sends a message. I'll only be pinged when there's a mention.
    I chose to send a message every time anyway just to make it easier to make sure the bot's still working.

    • @pranavi1949
      @pranavi1949 Před 3 lety

      I asked that question on your discord.

  • @ddibbles
    @ddibbles Před 3 lety +6

    I know it's a bit of a silly project, but you're teaching some very valuable python skills here! I hope you continue to post regularly to this channel again!

  • @kailashrajendran3580
    @kailashrajendran3580 Před 3 lety +8

    Just now realised, I'm so early 🤣! I
    Always love CS Dojo ❤️

  • @harrypulsford995
    @harrypulsford995 Před 3 lety +2

    The reason for the error is probably because the element has become stale in the Dom, ie its looking for the element before the page is actually in a ready state, also an easier way to locate that element would be to use xpath and locate via class contains and the text.

  • @ClarityCoders
    @ClarityCoders Před 3 lety +1

    Nice video! I was playing with selenium on Replit a bit the other day works really well. I could see this video helping people set up a lot of projects like checking for the availability of GPUs or PS5s. You know the important stuff...

  • @dddonehoo7
    @dddonehoo7 Před 3 lety +1

    Some of the best and most inspirational CS content.

  • @hoshiya4522
    @hoshiya4522 Před 3 lety +1

    To scrape dynamic oages with BS4 or Requests
    You'll need to first find the xhr on the page.. chrome dev tools is the best way to do this..
    then you can just do get requests on those xhrs and you'll get your data

  • @DontSnowMe
    @DontSnowMe Před 3 lety +1

    Welcome back! I've actually been wondering how to do something like this on discord. Thank you!

  • @ermalgashimramori
    @ermalgashimramori Před 3 lety +1

    Great content as always! Hope you upload more!

  • @rolandocruz1695
    @rolandocruz1695 Před 3 lety +4

    THE GOAT IS BACK

  • @karenyanza7721
    @karenyanza7721 Před 2 lety

    He is extremely good teaching , in every single video , i dont get confused "never" , keep it up!!!!!! 👏👏👏👏

  • @samyaksanghvi3896
    @samyaksanghvi3896 Před 3 lety +3

    Good ! I am a professional webscraper on Fiverr. But it's all because of you. Thank you for making excellent videos ❤️
    Hey, if you can please make a course on django.
    Thank you

  • @iconelias508
    @iconelias508 Před 3 lety +6

    Finally you're back ...

  • @c.allmebro
    @c.allmebro Před 2 lety

    U make so detailed python tutorials and it's helping me out a lot u are the best bro

  • @themarvelgirl1382
    @themarvelgirl1382 Před 3 lety

    Thanks for all the efforts you've taken for us!

  • @nijoeli
    @nijoeli Před 3 lety +2

    I was feeling depressed, I haven't had enough motivation to do anything lately, but this video has given me motivation to do a similar bot and thanks to your tutorials I'm gonna be able to do it :D
    Thank you very much

  • @cookieandcream6151
    @cookieandcream6151 Před 3 lety

    These videos continue to inspire me. Thank youuuu 🥺

  • @benjaminmornington9129
    @benjaminmornington9129 Před 3 lety +8

    I want to learn coding so I can do Cyber security so I am try to learn as much coding tips as possible so thank you for the vidz

  • @macx8360
    @macx8360 Před 3 lety

    Honestly speaking yesterday thinking about ut Frequency of ur videos and yah here u are .

  • @umumuntuksemua9831
    @umumuntuksemua9831 Před 3 lety

    Great video as always!

  • @krypton9378
    @krypton9378 Před 3 lety

    I love your way of teaching..thank you so much for teaching us the easiest way possible!

  • @Lisa-gq7xp
    @Lisa-gq7xp Před 3 lety +1

    you are a wonderful person, thank you for sharing the useful information. I'm learning about AI, looking forward to finding youtubers like you. Everyone who studies AI, do you know any other useful youtuber channels? thanks a lot .

  • @aydnaliyev914
    @aydnaliyev914 Před 3 lety

    These videos keep me inspired 💙 Tysm

  • @brianbrian7590
    @brianbrian7590 Před 3 lety

    BRUH, YOURE STILL ALIVE! I WATCHED YOUR OLD VIDEOS LAST MOTNH

  • @hoango867
    @hoango867 Před 2 lety

    Just wanna say thanks you. Your video is great

  • @fanaticalplel1003
    @fanaticalplel1003 Před 3 lety

    Just tarted learning, this looks so advanced and complicated

  • @mvpbluesky9820
    @mvpbluesky9820 Před 3 lety +1

    hi man i love all your video it help me a lot to learn python and others
    i have a question what software do you use for programing?

  • @ac130kz
    @ac130kz Před 3 lety

    refeshing the page in selenium works worse than loading it again for whatever reason, also it's better to use explicit polling with WebDriverWait, then there are switches to make your page load significantly faster

  • @strategy_gal
    @strategy_gal Před 3 lety

    Wow this is so cool! Great tutorial!

  • @thetopnotch5209
    @thetopnotch5209 Před 3 lety

    YK is back... Awesome

  • @oxane2722
    @oxane2722 Před 3 lety

    Wow yk you're back!

  • @mustafaaljanabi4818
    @mustafaaljanabi4818 Před 3 lety +1

    Welcome back buddy :)

  • @nazialateef6451
    @nazialateef6451 Před 3 lety +1

    Happy to see you..😊

  • @abdullashafi580
    @abdullashafi580 Před 3 lety

    yay, you are back!

  • @disrael2101
    @disrael2101 Před 3 lety +1

    Why u post so rarely bro? Such useful projects! Make more asap

  • @JamBear
    @JamBear Před 3 lety

    I didn't know you were in Vancouver! I can confirm it is unbearably hot.

  • @Kai-uj5go
    @Kai-uj5go Před 3 lety +4

    I feel like someone would be willing to take a cashapp for the product and shipping cost to send you one, only problem would be how long it takes crossing the border the heatwave might be over before it reaches you. Cool code though.

  • @slothlair
    @slothlair Před 3 lety

    Nicely explained, thanks.

  • @muhammadsakib4711
    @muhammadsakib4711 Před 3 lety

    waiting for your javascript tutorials for beginner! I'm interested in javascript to being a web developer!

  • @noatak6027
    @noatak6027 Před 3 lety

    Your videos are so helpful for me. Thank you ever so much

  • @mdshadan-7312
    @mdshadan-7312 Před 3 lety

    Great ♥️ after watching this my motivation in programming is grew

  • @Prince.Vaviya
    @Prince.Vaviya Před 3 lety

    This is insane CS Dojo if you don't mind then I want to ask this....
    (1) Which language you started first to learn coding?
    (2) From which platform you learned it ?
    Please reply me on this comment!

    • @CSDojo
      @CSDojo  Před 3 lety

      I think I talk about all of those here: czcams.com/video/mElVGah7Epg/video.html

  • @mehmetjohson8878
    @mehmetjohson8878 Před 3 lety

    Thank you brother

  • @enter5mycreations3
    @enter5mycreations3 Před 3 lety +1

    Dude do you know source 2 programming or coding language? Because we are modding a game. Retexturing it and adding more items.

  • @Shenge93
    @Shenge93 Před 2 lety

    Man you are good teacher, can you please provide full beginner course for Python I am really understanding when you teach me those basic Python

  • @konstantin.v
    @konstantin.v Před 3 lety

    _print('refreshing...')_
    I see what you did there 😊

  • @infotechyeti
    @infotechyeti Před 3 lety

    Awesome. Thanks for the channel. You do any live streams and when?

    • @CSDojo
      @CSDojo  Před 3 lety +1

      No I don't really do live streams

  • @BrianBest
    @BrianBest Před 3 lety

    This is timely stuff!!

  • @elixpo
    @elixpo Před 3 lety

    This is amazing 👍

  • @pile333
    @pile333 Před 3 lety

    Amazing!
    And some says that you can do such a thing in Python...

  • @muhammadhusaynamilaiyub6911

    hi im new to coding just wanna ask cause i cant find soluttion how do i print a string and a int or float together cuase when i print a int and str together it becomes error so i have to separate them

  • @alphabausffs7254
    @alphabausffs7254 Před 3 lety

    hello do you know if it it possible to use spyder for doing that? Because i get this when i enter the code on spyder No module named 'selenium'

  • @easytutorial1869
    @easytutorial1869 Před 3 lety

    What should I choose between B.tech Cse with specialization in ai/ml engineering and B.tech Cse with specialization in data science?

  • @homamal289
    @homamal289 Před 3 lety

    I have seen all your videos on how and what you should learn first. But I’m in a situation that I can’t find enough time because I study Mathematical Statistics and now I have a chance to get a job but they prefer c++ to learn first also I’m studying c++ in my university now so I just want to know what is the best I can choose for now

  • @encryptedhuli9482
    @encryptedhuli9482 Před 3 lety

    Does anyone know how to make your code change the second time you run it? For example: If you run your code once it says Hello. Then if you run it again it says Whats up.

  • @sourdurian2839
    @sourdurian2839 Před 3 lety

    my fav youtuber heh

  • @turjobennington1677
    @turjobennington1677 Před 3 lety

    i miss your videos ! come back to the youtube man

  • @TECHWITHSHAFI
    @TECHWITHSHAFI Před 3 lety

    My idol cs dojo
    Take my love

  • @SweetDarkViolet
    @SweetDarkViolet Před 3 lety

    I would `copy as fetch` from the request that gets whether the order is available. Then I would do a setInterval using that fetch.

  • @jiberuba8856
    @jiberuba8856 Před 3 lety

    How to change the slack to email? I want to use this code please

  • @SciencesEducationDE
    @SciencesEducationDE Před 3 lety

    I did the same as you, unfortunately I get the following error message when I run the second part of the code: Traceback (most recent call last):
    File "main.py", line 18, in
    client = slack.WebClient(token=os.environ['slack_token'])
    AttributeError: module 'slack' has no attribute 'WebClient'

    • @CSDojo
      @CSDojo  Před 3 lety

      Did you run pip install slackclient?

    • @pranavi1949
      @pranavi1949 Před 3 lety

      Did you install slackclient using pip install?

    • @SciencesEducationDE
      @SciencesEducationDE Před 3 lety

      @@pranavi1949 Yes I did, even pip 3 install slackclient

    • @abcreation8371
      @abcreation8371 Před rokem

      @@SciencesEducationDE Is your bug resolved? If yes please let me know how to resolve it.

  • @sh3071-s8b
    @sh3071-s8b Před 3 lety

    Pretty Good

  • @timeboundtales1
    @timeboundtales1 Před 3 lety +1

    I love the vids

  • @mateenbutt3180
    @mateenbutt3180 Před 3 lety

    result = 10//3 # Result: 3
    result = -10//3 # Result: -4
    why when one of operand is -ve result change as above?

  • @motivation_beast3489
    @motivation_beast3489 Před 3 lety

    Sir plz about when we learn python next steps for career

  • @dragongamer4753
    @dragongamer4753 Před 3 lety +1

    I live in georgia in the us so i already have ac but nice video

  • @vepexandalali3985
    @vepexandalali3985 Před 3 lety

    Can Zoe make a video where you show how to make a wepsite plis

  • @bruce7773
    @bruce7773 Před 3 lety

    Great video 👍 GitHub Co Pilot is a bit scary ? Web Developer jobs could be gone in 3 years time 😞

    • @CSDojo
      @CSDojo  Před 3 lety +1

      hmm honestly hard to tell 😅

  • @ma4534
    @ma4534 Před 3 lety

    Hello sir...
    How do i improve my coding in 30 days for competitive coding...... I have been trying but not able to do code properly...

  • @devidevidevina
    @devidevidevina Před 2 lety

    Hello what code editor you used?

  • @dist321
    @dist321 Před 2 lety

    ahhahaah Cool coding! Did you finally get your AC?

  • @adarshsaurabh7871
    @adarshsaurabh7871 Před 3 lety

    Hey man why you posts so less videos these days
    I really miss you

  • @camn-bv3vq
    @camn-bv3vq Před 3 lety

    What about those clases that changes everytime? I think it's anti scrapping technique used by some owner.

    • @CSDojo
      @CSDojo  Před 3 lety +1

      Hmm that might be kind of tricky to deal with. You might want to select things based on text in that case, then.

  • @syncopowerstations
    @syncopowerstations Před 3 lety

    Is there a chance that you might be interested in corroborating on a new project?

  • @arshpreetsingh7828
    @arshpreetsingh7828 Před 3 lety

    How can I run my python script indefinitely? Most probably by using some cloud hosting service for running scripts but what kind would be best for running these kind of python bot scripts?

    • @CSDojo
      @CSDojo  Před 3 lety

      I think Replit + always on is pretty good as I mentioned in the video and description

  • @leelakrishna6291
    @leelakrishna6291 Před 3 lety

    AWS or data science what to choose

    • @CSDojo
      @CSDojo  Před 3 lety

      Hmm not sure. You might want to try asking on Discord: csdojo.io/d

  • @jewell1276
    @jewell1276 Před 3 lety

    Can we use request instead of selenium
    Plzz help.....

  • @Rocketsmemes1
    @Rocketsmemes1 Před 3 lety

    I followed you on linked in lol

  • @LandoCalani404
    @LandoCalani404 Před 3 lety

    does anyone know a site for scripts like this?

  • @sarves_boreddy
    @sarves_boreddy Před 3 lety +1

    Good Morning

  • @kyle_bro
    @kyle_bro Před 3 lety +1

    He have plenty in FL, ill ship you one lol

  • @pick1916
    @pick1916 Před 3 lety

    damn i dont know even the half of half of what you know but I hope I can be as good as you one day

  • @adriangallano2232
    @adriangallano2232 Před 3 lety

    I'm so fast flash didn't see me coming.

  • @josesamuelproducoes2843

    Cool

  • @sheikhebadulkarim2599
    @sheikhebadulkarim2599 Před 2 lety

    good

  • @fatimabaig504
    @fatimabaig504 Před 3 lety

    Upload moreeeeee

  • @GoodBoyDanny
    @GoodBoyDanny Před 3 lety

    But aren’t there like anti bot scripts on best uy

    • @CSDojo
      @CSDojo  Před 3 lety

      Clearly not 🤣

    • @GoodBoyDanny
      @GoodBoyDanny Před 3 lety

      @@CSDojo I just know theres a whole market for bestbuy bots. Checkout botbroker . io lol

    • @pranavi1949
      @pranavi1949 Před 3 lety

      This isn't a bot per say it is just web scraping. The Anti Script checks if a bot host is on the site not we bscraping

  • @hangout7081
    @hangout7081 Před 3 lety

    Hi cs-dojo. Can you please continue teach python. I'm new an I learn most skill from you.

    • @narc7885
      @narc7885 Před 2 lety

      He has a python playlist check it out

  • @folyrd
    @folyrd Před 3 lety

    You probably already thought about it but why not let the bot ping you when the text says "is available" rather than spamming yourself with "not available" messages.🤷🏻‍♂️

    • @david.carreira
      @david.carreira Před 3 lety +1

      I believe that was just for the sake of showing how messaging without pings works

    • @CSDojo
      @CSDojo  Před 3 lety +1

      It's basically just to make sure that the script is still working haha

    • @folyrd
      @folyrd Před 3 lety

      @@CSDojo fair enough😊

  • @underflowexception
    @underflowexception Před 3 lety

    I dont think the parent container will be unique as it has random characters at the end of the string

    • @CSDojo
      @CSDojo  Před 3 lety

      Did you try it?

    • @underflowexception
      @underflowexception Před 3 lety

      @@CSDojo no im just assuming they will change once a new build is deployed but i could be wrong

  • @noahtesfay2375
    @noahtesfay2375 Před 3 lety

    good job bro!

  • @ticoo1977
    @ticoo1977 Před 3 lety

    Hey bro please I request to you , tell me that did you have a computer science degree

  • @theawakened7739
    @theawakened7739 Před 3 lety

    YT algorithm boost

  • @mahsanmasroor4904
    @mahsanmasroor4904 Před 3 lety

    Please teach us c++ programming language please:)

  • @aashutoshraj2751
    @aashutoshraj2751 Před 3 lety

    You are very handsome. Thank you for this video. Very creative. 😊

  • @novagames5719
    @novagames5719 Před 3 lety

    I know this comment don't belong here
    But can you make videos on c++
    Or recomend some if you know some good ones

  • @mythicalpg3d444
    @mythicalpg3d444 Před 3 lety

    Why doesn't the free replit code not work? rip :(

    • @CSDojo
      @CSDojo  Před 3 lety

      What's the error message you got?

    • @mythicalpg3d444
      @mythicalpg3d444 Před 3 lety

      @@CSDojo It says that “this voucher has already been redeemed”, but I haven’t yet redeemed it 🤷‍♂️

    • @mythicalpg3d444
      @mythicalpg3d444 Před 3 lety

      @@CSDojo also good to have you back man 💪💯

    • @CSDojo
      @CSDojo  Před 3 lety +1

      @@mythicalpg3d444 Hmm weird. Do you mind emailing me at yksu@replit.com with your Replit username so I can take a look? And thanks!

    • @mythicalpg3d444
      @mythicalpg3d444 Před 3 lety

      @@CSDojo no problem!