Video není dostupné.
Omlouváme se.

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

Sdílet
Vložit
  • čas přidán 25. 02. 2019
  • In this Python Programming Tutorial, we will be learning how to use the Requests library. The Requests library allows us to send HTTP requests and interact with web pages. We will be learning how to grab the source code of a site, download images, POST form data to routes, read JSON responses, perform authentication, and more. Let's get started...
    BeautifulSoup Tutorial - • Python Tutorial: Web S...
    File Objects Tutorial - • Python Tutorial: File ...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python #Requests

Komentáře • 514

  • @coreyms
    @coreyms  Před 5 lety +333

    My next video will be a real-world example of a script I wrote to monitor my personal website. We'll use the Request library to monitor the site, and if it is down then we will learn how to send an email and automatically restart the server. I hope everyone finds this useful! Hope you're having a great week!

    • @premjilla8820
      @premjilla8820 Před 5 lety +9

      can you please make tutorial o scraping twitter data using tweepy?

    • @coreyms
      @coreyms  Před 5 lety +27

      That's on my list of topics to cover, but I have some data science videos I'm trying to put together first. But yes, I definitely will at some point

    • @swadhikarc7858
      @swadhikarc7858 Před 5 lety +3

      Awesome idea. Thought that would be a great tutorial to see you teaching how to monitor a website in a candid way

    • @tnhoang088
      @tnhoang088 Před 5 lety +2

      @@coreyms Need more data science, computer vision or even Javascript videos. Your lecture is so good but do not upload all the series at the same time like the django, flask before. It's so overwhelming. And if you can, I slightly recommend that you should make a series about Javascript, Nodejs or something related to js. I think it's much more applicable than data science or AI ... Just a suggestion ;)
      Always appreciate your way of teaching

    • @sujildevkota
      @sujildevkota Před 5 lety

      Can you make a video to run python script in the background and display message and progress bar in the web page using Django

  • @AlexBerkk
    @AlexBerkk Před 5 lety +358

    That's it! I'm disabling my adblock for your channel!

  • @NaderTaghinia
    @NaderTaghinia Před 5 lety +96

    09:57 " I never understand how some of these people are so productive and..."
    Since, I started watching your channel I have been thinking the exact same thing about you Mr. Schafer. Honestly, I could never understand how you could author so many impeccable videos on programming so fluently. You are giving so much to people like me. Thank you from the bottom of my heart :)

    • @coreyms
      @coreyms  Před 5 lety +22

      Oh wow. Thanks so much, Nader. I really appreciate the kind words :)

    • @karimmoradi2003
      @karimmoradi2003 Před rokem +2

      The same. I stopped video to write something like this. Corey! I watched many of your videos but I am still in doubt how you can be so humble, knowledgeable, and productive. You are just incredible. Along side of technology, I am learning morality. Thanks

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

    No matter how much I know or who I start learning from, I always end up back to Corey for some reason. Clear and concise!

  • @pranaybure2651
    @pranaybure2651 Před 5 lety +26

    Excellent insight on Requests, Corey!
    Requests library is my goto tool when APIs aren't working as expected.
    I recently used Requests(Sessions) in a script to mimic browser activities for a web portal as APIs had issues with patch fixes.
    Understanding browser components with Chrome Dev Tools in conjunction with Requests was really helpful to understand how requests attribute viz. Headers, Form-Data, Query-string params are assembled.

  • @andonglin8900
    @andonglin8900 Před 5 lety +8

    WOW, the 100th video in your MARVELOUS Python tutorial series with my 100th thumbs up. Thank u Corey, you are truly amazing!

  • @timtudosa2519
    @timtudosa2519 Před 4 lety +33

    You will reach one million subscribers soon Corey. Your videos are so detailed and and easy to follow through. I now understand requests. Thanks for the effort in making these videos!

  • @muralimohan807
    @muralimohan807 Před 5 lety +24

    Corey you are the best trainer or develper for me as when i see your videos ill get both new things and the things in my mind that i wish to ask you but you answer them in your video itself. so you are trainer and develper for me.keep the good work cheers.

  • @archstampton5910
    @archstampton5910 Před 5 lety +7

    Probably one of the more valuable CZcams video I have ever seen, as far as I am concerned.

  • @sudarsandm
    @sudarsandm Před 5 lety +3

    Your video is a time saver. The information which we need to process from more than one blog or resource is presented elegantly and beautifully to us. Thank you Corey.

  • @robinharris4706
    @robinharris4706 Před 5 lety +6

    Great tutorial Corey. Really like your stuff - thank you for covering the material at a brisk pace. Loads of excellent, well presented content without having to listen to slow tedious simplifications. Awesome!

  • @rahulreddy6541
    @rahulreddy6541 Před 4 lety +24

    You have got passion in your voice which is helping people like me to learn programming in a much fun way. Love you for what you are. love you 3000.

  • @narendrar9940
    @narendrar9940 Před 5 lety +5

    Hi Corey, Your videos have become my one source of all the information i need on python, your videos are simple and just great!, thank you very much.

  • @misskay007
    @misskay007 Před 5 lety +15

    Harvard should hire you. I learned so much from watching your videos. Much more through than than CS50 course in web development(although it is a great series). Thank you, your hard work is very much appreciated. I will be donating and sharing.

  • @JoshuaDHarvey
    @JoshuaDHarvey Před 4 lety +2

    10:06 dude, welcome to the club. Your videos alone make most of us feel the same way so I can only imagine if these people from your perspective are another step up in productive... then I'm completely puzzled! Anyway, thanks for a great video Corey!

  • @lamis_18
    @lamis_18 Před 2 lety

    The best channel, finally ! I have found all basics that I've missed before, and I regret to not find it long time a go, thank u very much.

  • @RajPatelMansuria
    @RajPatelMansuria Před 4 lety +4

    You are awesome, the way you explain stuff with such calmness and speed is just out of the world. Thanks you again for posting great stuff 👏👏👏

  • @iadorepop
    @iadorepop Před 5 lety +12

    believe me !! i was so waiting for this 💓

  • @ramonmonda
    @ramonmonda Před 10 měsíci

    Hello Corey, I'm Brazilian and your video helped me a lot with my project! Thanks for the class! 👊

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

    Normally I'm the guy that is getting aggressive because the guy in the tutorial video doesn't tell what I want to know, but THIS -THIS IS DAMN GOOD.

  • @Bergamoism
    @Bergamoism Před 5 lety +4

    Great job on explaining this! Your tutorials are to the point, clear and cover everything we need to know. Every video takes me to the next level.

  • @victoraugusto2224
    @victoraugusto2224 Před 4 lety +1

    thanks man, im currently working in a project for a job application, your explanation saved my life

  • @bgable7707
    @bgable7707 Před 4 lety

    Concise, clear, explanation and examples. Always hitting the key points with any fluff, thanks!!!

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

    This is called something left behind when we move ahead...Good work Corey...

  • @sevenessie
    @sevenessie Před 5 lety +17

    Hey Corey, just wanted to tell you what I realized recently.
    Whenever I'm reading a tutorial or some explanations in python/web dev area, I read it with your voice :D.
    Thanks for the great work and please don't stop :)

    • @alan-j
      @alan-j Před 5 lety +1

      Yes, I would say coreyms is the best place to learn python in the whole of youtube network..
      Please dont stop this good work..
      HATS OFF TO U..

  • @ihalil95
    @ihalil95 Před 5 lety +2

    I am really looking forward to seeing a video about threading. I hope you will make it as well! Thanks for great tutorials even better than paid courses around in my opinion! I'd rather support your channel instead of paying for less quality courses.

  • @mrj1997
    @mrj1997 Před 5 lety +6

    Please teach everything ! your videos are fantastic.Thanks Corey

  • @Uxrandom996
    @Uxrandom996 Před rokem +1

    Thanks, for such an awesome high quality tutorial 😀 Very clear and quick to the point!

  • @nickd892
    @nickd892 Před 3 lety

    Lol your the first guy I look for when I need a tutorial. Great video as always!

  • @parthparadkar1021
    @parthparadkar1021 Před 5 lety +1

    Thank you so much for this video!! Happy to have learnt something new today. Keep 'em coming! :D

  • @rohitd7834
    @rohitd7834 Před 4 lety +2

    I was struggling a lot with requests. but now, I'm clear with it. Thanks Corey!! NO words to thank you. :)

  • @dan-3268
    @dan-3268 Před 5 lety +2

    Ok, Corey... Corey-Corey-Corey.....*ominous silence"
    You are the Man. Hands down the most well-put and thought through videos on Python I've seen on CZcams.
    Much appreciated! I thank thee for thy work for tis magnificent

  • @ddpwe5269
    @ddpwe5269 Před rokem

    Gratz on your 1mil subs! Well deserved and surprised more haven't sub'd!

  • @amitbajpai6265
    @amitbajpai6265 Před 5 lety +10

    I been waiting for this long long time ago thank you Corey

  • @falconX5000
    @falconX5000 Před 5 lety +1

    Great work pal!!!!!! Looking forward to your next video.

  • @philmontgomery502
    @philmontgomery502 Před 4 lety +2

    Excellent delivery Corey... the best!!

  • @krishnakuraku6853
    @krishnakuraku6853 Před 5 lety +1

    looking forward for more videos like this ..pleas post more videos..you are the best tutor in python

  • @yolberpabon4973
    @yolberpabon4973 Před 4 lety

    Genial Corey, me gusto el video y era lo que buscaba, una explicación rápida y clara de que es requests y ademas lo haces con profesionalidad (+sub)

  • @adamgdev
    @adamgdev Před 4 lety +1

    You fucking killed it again! So precises and easy to understand AND had some good random nuggets in there. (HTTP request code meanings and httpbin). You're the man! Keep it up!!!

  • @chaitanyakhambete
    @chaitanyakhambete Před 4 lety +2

    awesome work bro... making simpler stuff more simpler keep it up

  • @olha_
    @olha_ Před 5 lety +2

    Great video as usual Corey! Please do more videos on Django and Rest Framework, thanks!

  • @wanderer-1986
    @wanderer-1986 Před 5 lety

    Awesome video! Thanks for posting this. Easy to follow your examples. Thank you

  • @talhaamir9023
    @talhaamir9023 Před 4 lety +1

    great buddy!! keep it up!!
    this was highly knowledgeable.:)

  • @willumdgork
    @willumdgork Před 4 lety

    Outstanding tutorial! Thanks for the coaching and for pointing out the httpbin tool!!!

  • @j.d.3890
    @j.d.3890 Před 5 lety

    Hey Corey, thanks for this guide.
    In work sometimes `allow_redirects=False` as request param is helpful as well.
    Also if your request resulted in several redirects (which is also quite usual), request.history will return all request objects which have happened.

  • @mouradbarakat123
    @mouradbarakat123 Před 5 lety +1

    This video is just in time for me! Thank You!

  • @joeking5211
    @joeking5211 Před rokem

    Absolutely super, well done, very well paced. Thank you for this, learned a lot.

  • @jenmanzella1948
    @jenmanzella1948 Před 4 lety

    Your tutorials are FANTASTIC! Thank you

  • @arete_
    @arete_ Před 2 lety

    This was a good video. I am still struggling with using session objects though. Would love an in-depth on that. Happy new year! Stay safe

  • @Jo-id9zm
    @Jo-id9zm Před 5 lety +1

    Thanks once again for some quality content, man!

  • @henriquepigozzo4707
    @henriquepigozzo4707 Před 4 lety +1

    The timeout param is amazing. Thanks!

  • @robertocardenosa493
    @robertocardenosa493 Před 5 měsíci

    This is a great video. I plan to test its examples within python. The only thing I missed was the Patch command.

  • @RajanKumar-lv7ve
    @RajanKumar-lv7ve Před 5 lety +1

    oh, i needed this one really, Thanks Corey :)

  • @DifficultWorld7
    @DifficultWorld7 Před 3 lety +5

    I have wasted my money on a python course on Udemy I've regretted to this day, and this guy spreading his knowledge for Free, such an awesome guy you are.. THANK YOU!!

    • @n9583
      @n9583 Před 3 lety

      I’ve done that before

    • @saurabhchaudhary7342
      @saurabhchaudhary7342 Před 3 lety

      I also want to start with Python. Given the fact that it's a four year old series, is it still enough ?

  • @huy3986
    @huy3986 Před 4 lety

    I really love your videos. Thank you so much and wish you're always happy.

  • @asifahussain899
    @asifahussain899 Před rokem

    Corey fam gonna be 1 million.. 💚
    Cheers 🥂

  • @JoseRamirez-yr2mx
    @JoseRamirez-yr2mx Před 3 lety

    Great video. You covered exactly what I needed!

  • @thengakola6217
    @thengakola6217 Před 4 lety

    That was one of the few clean videos on the entire internet.........

  • @pratikshinde568
    @pratikshinde568 Před 3 lety

    Sir yours video is much more informative and is in more detail compared to others

  • @silverzero9524
    @silverzero9524 Před 5 lety +1

    i wanted to get info from site but was stuck so wrote some bad code that doesnt help me much but works
    and now u post this
    time to modify my code :)

  • @axeditingzone513
    @axeditingzone513 Před 3 lety

    thanks alot you saved my day .... i have only mistake in post request thanks alot

  • @tymothylim6550
    @tymothylim6550 Před 3 lety

    Thank you very much for this video! It was very helpful and I learnt a lot :)

  • @waiitwhaat
    @waiitwhaat Před 2 lety

    Amazing tutorial. Kudos for making it. It was really awesome.

  • @ananyamahapatra6597
    @ananyamahapatra6597 Před rokem

    😍😍😍 hey Corey… u are just the best 🥳

  • @jeffgalef121
    @jeffgalef121 Před 4 lety +1

    Fantastic video. Thank you for your hard work.

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

    whenever I am challenged while working with python, then my mind recalls Corely.

  • @MusicGameFinatic999
    @MusicGameFinatic999 Před 4 lety +1

    You are the man! You very much. Very well explained.

  • @md.akib5124
    @md.akib5124 Před 5 lety +1

    Corey i am a new fan of yours. You are so awesome

  • @ahmadabzakh2343
    @ahmadabzakh2343 Před 5 lety +1

    Hello Corey,, have been following you for quiet a while now,, really helpful in overall understanding of the subject in hands,, however, this is the first clip where I don't understand what's happening exactly, and obviously it's my problem, so wanted to ask about what prerequisites are needed in order to follow along in the video,
    again man many thanks for the effort put here,, you are one of a kind

  • @busimoses8095
    @busimoses8095 Před 5 lety +1

    You're AMAZING, a lifesaver

  • @call-me-poor9313
    @call-me-poor9313 Před 3 lety

    This Video is so helpful. I can not thank you enough

  • @potatobot2802
    @potatobot2802 Před 10 měsíci

    Thank you so much Corey for your time!

  • @mariamhasan3733
    @mariamhasan3733 Před rokem

    Excellent explanation!

  • @karthikl4692
    @karthikl4692 Před 5 lety +2

    Thanks Corey right video at right time

  • @jag831
    @jag831 Před 4 lety +1

    10:04 Yeah, I think that same thing every time I open any library. Respect to those guys

  • @ravindersanjay
    @ravindersanjay Před 4 lety +1

    this video is worth watching. full of knowledge

  • @drygordspellweaver8761

    Thank God Corey has a requests tutorial

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

    Hi Corey, thanks again for this amazing video tutorial! You're really awesome!! 💯 🙏
    I have a request if I may, can you also do a tutorial on
    Asynchronous programming in Python? Particularly with async and await, on asyncio module?
    My deepest thanks and best regards,
    Ed

  • @andreiolegovich5971
    @andreiolegovich5971 Před 3 lety

    Thank you for creating this tutorial!

  • @j.n.y790
    @j.n.y790 Před 3 lety

    FANTASTIC TUTORTIAL! well done

  • @serious6037
    @serious6037 Před 2 lety

    jfc, i finally found this... THANK YOU!!!!

  • @thatlinuxguy9902
    @thatlinuxguy9902 Před 3 lety

    The best tutorial I've ever seen

  • @supriyochowdhury3546
    @supriyochowdhury3546 Před 4 lety

    No words can define Corey

  • @user-cy3je1xd1c
    @user-cy3je1xd1c Před 4 lety +1

    Thank you so much, Corey! I like your videos a lot!

  • @tolulopeayemobola1446
    @tolulopeayemobola1446 Před 3 lety

    Thank you very much for this video. You gave me some confidence

  • @juanbomfim22
    @juanbomfim22 Před 4 lety +32

    I'm crying inside cause that's exactly what I was looking for

    • @Seiseary
      @Seiseary Před 4 lety +1

      hahahaah

    • @Lakshit.
      @Lakshit. Před 4 lety +3

      Damn true bro
      ... I was exactly looking for same

    • @Danksta
      @Danksta Před 3 lety

      I’ve never related more to a CZcams comment

  • @lindaduong289
    @lindaduong289 Před 2 lety

    Best tutorial for requests

  • @stonecoldcold2941
    @stonecoldcold2941 Před 4 lety +1

    Awesome Tutorial!

  • @TechieGuy82
    @TechieGuy82 Před 3 lety

    The best on youtube. Sublime

  • @MongooseTacticool
    @MongooseTacticool Před 4 lety +1

    Corey, you're the best :)

  • @SandwichMitGurke
    @SandwichMitGurke Před 5 lety +1

    dude this video is so awesome!!

  • @codewitholgun2166
    @codewitholgun2166 Před 5 lety +1

    Wow, very nice tutorial :)

  • @technologysmiths.london6284

    Excellent video, thanks!

  • @daegudude1048
    @daegudude1048 Před 5 lety +2

    Like and thumbs up before watching it!!👍👍

  • @waltershu9199
    @waltershu9199 Před 4 lety

    Thanks. Save me a lot of time and effort.

  • @bunnybird12
    @bunnybird12 Před 2 lety

    This helped a ton. Thanks!

  • @user-ls3ee6hv8x
    @user-ls3ee6hv8x Před 4 lety

    Perfect as always !

  • @alan-j
    @alan-j Před 5 lety +2

    @corey This is an awesome video on requests.. If anybody asks me what is the best place to learn python, i will directly point them to your channel.
    Can you also cover some indepth topics of this "requests" module?

  • @amirsarrafzadeharasi2214

    Thank you so much for amazing videos

  • @nipundewenarayane2603
    @nipundewenarayane2603 Před 4 lety

    great piece of work