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

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

Пікірлер: 513

  • @coreyms
    @coreyms5 жыл бұрын

    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

    5 жыл бұрын

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

  • @coreyms

    @coreyms

    5 жыл бұрын

    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

    5 жыл бұрын

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

  • @tnhoang088

    @tnhoang088

    5 жыл бұрын

    @@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

    5 жыл бұрын

    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
    @AlexBerkk5 жыл бұрын

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

  • @deus5215

    @deus5215

    3 жыл бұрын

    @yeeLix Felt that

  • @paulthedanger

    @paulthedanger

    3 жыл бұрын

    @ً ok hackerr

  • @arielgorlik2664

    @arielgorlik2664

    3 жыл бұрын

    @ً check out privacy badger

  • @wege8409

    @wege8409

    3 жыл бұрын

    What a gentleman

  • @rodricbr

    @rodricbr

    3 жыл бұрын

    I'm disabling my brave shields for this guy

  • @NaderTaghinia
    @NaderTaghinia4 жыл бұрын

    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

    4 жыл бұрын

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

  • @karimmoradi2003

    @karimmoradi2003

    Жыл бұрын

    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

  • @pranaybure2651
    @pranaybure26515 жыл бұрын

    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.

  • @ivyunhinged9521
    @ivyunhinged95213 жыл бұрын

    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!

  • @andonglin8900
    @andonglin89005 жыл бұрын

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

  • @muralimohan807
    @muralimohan8075 жыл бұрын

    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.

  • @timtudosa2519
    @timtudosa25194 жыл бұрын

    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!

  • @d3ad_shot-vlogsgaming553

    @d3ad_shot-vlogsgaming553

    Жыл бұрын

    You were correct :)

  • @void6670

    @void6670

    10 ай бұрын

    he did it

  • @archstampton5910
    @archstampton59105 жыл бұрын

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

  • @sudarsandm
    @sudarsandm5 жыл бұрын

    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.

  • @iadorepop
    @iadorepop5 жыл бұрын

    believe me !! i was so waiting for this 💓

  • @robinharris4706
    @robinharris47065 жыл бұрын

    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
    @rahulreddy65414 жыл бұрын

    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
    @narendrar99405 жыл бұрын

    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.

  • @JoshuaDHarvey
    @JoshuaDHarvey4 жыл бұрын

    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!

  • @misskay007
    @misskay0075 жыл бұрын

    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.

  • @coreyms

    @coreyms

    5 жыл бұрын

    Thanks!

  • @RajPatelMansuria
    @RajPatelMansuria4 жыл бұрын

    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 👏👏👏

  • @coreyms

    @coreyms

    4 жыл бұрын

    Thanks!

  • @lamis_18
    @lamis_182 жыл бұрын

    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.

  • @amitbajpai6265
    @amitbajpai62655 жыл бұрын

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

  • @Bergamoism
    @Bergamoism5 жыл бұрын

    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.

  • @sevenessie
    @sevenessie5 жыл бұрын

    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

    5 жыл бұрын

    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..

  • @rohitd7834
    @rohitd78344 жыл бұрын

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

  • @mrj1997
    @mrj19975 жыл бұрын

    Please teach everything ! your videos are fantastic.Thanks Corey

  • @sudhirs003
    @sudhirs0033 жыл бұрын

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

  • @falconX5000
    @falconX50005 жыл бұрын

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

  • @victoraugusto2224
    @victoraugusto22244 жыл бұрын

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

  • @ramonmonda
    @ramonmonda9 ай бұрын

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

  • @DifficultWorld7
    @DifficultWorld73 жыл бұрын

    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

    3 жыл бұрын

    I’ve done that before

  • @saurabhchaudhary7342

    @saurabhchaudhary7342

    3 жыл бұрын

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

  • @philmontgomery502
    @philmontgomery5024 жыл бұрын

    Excellent delivery Corey... the best!!

  • @bgable7707
    @bgable77073 жыл бұрын

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

  • @cyberguygame9096
    @cyberguygame90963 жыл бұрын

    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.

  • @Uxrandom996
    @Uxrandom996 Жыл бұрын

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

  • @parthparadkar1021
    @parthparadkar10215 жыл бұрын

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

  • @ihalil95
    @ihalil955 жыл бұрын

    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.

  • @mouradbarakat123
    @mouradbarakat1235 жыл бұрын

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

  • @RajanKumar-lv7ve
    @RajanKumar-lv7ve5 жыл бұрын

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

  • @ddpwe5269
    @ddpwe5269 Жыл бұрын

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

  • @nickd892
    @nickd8923 жыл бұрын

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

  • @henriquepigozzo4707
    @henriquepigozzo47074 жыл бұрын

    The timeout param is amazing. Thanks!

  • @jenmanzella1948
    @jenmanzella19484 жыл бұрын

    Your tutorials are FANTASTIC! Thank you

  • @Jo-id9zm
    @Jo-id9zm5 жыл бұрын

    Thanks once again for some quality content, man!

  • @JoseRamirez-yr2mx
    @JoseRamirez-yr2mx3 жыл бұрын

    Great video. You covered exactly what I needed!

  • @chaitanyakhambete
    @chaitanyakhambete4 жыл бұрын

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

  • @talhaamir9023
    @talhaamir90234 жыл бұрын

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

  • @yolberpabon4973
    @yolberpabon49734 жыл бұрын

    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
    @adamgdev4 жыл бұрын

    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!!!

  • @busimoses8095
    @busimoses80955 жыл бұрын

    You're AMAZING, a lifesaver

  • @dan-3268
    @dan-32684 жыл бұрын

    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 KZread. Much appreciated! I thank thee for thy work for tis magnificent

  • @coreyms

    @coreyms

    4 жыл бұрын

    Thanks!

  • @willumdgork
    @willumdgork4 жыл бұрын

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

  • @olha_
    @olha_5 жыл бұрын

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

  • @joeking5211
    @joeking5211 Жыл бұрын

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

  • @wanderer-1986
    @wanderer-19865 жыл бұрын

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

  • @j.d.3890
    @j.d.38905 жыл бұрын

    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.

  • @krishnakuraku6853
    @krishnakuraku68535 жыл бұрын

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

  • @thengakola6217
    @thengakola62174 жыл бұрын

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

  • @mariamhasan3733
    @mariamhasan3733 Жыл бұрын

    Excellent explanation!

  • @supriyochowdhury3546
    @supriyochowdhury35464 жыл бұрын

    No words can define Corey

  • @juanbomfim22
    @juanbomfim224 жыл бұрын

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

  • @Seiseary

    @Seiseary

    4 жыл бұрын

    hahahaah

  • @Lakshit.

    @Lakshit.

    3 жыл бұрын

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

  • @Danksta

    @Danksta

    3 жыл бұрын

    I’ve never related more to a KZread comment

  • @asifahussain899
    @asifahussain899 Жыл бұрын

    Corey fam gonna be 1 million.. 💚 Cheers 🥂

  • @potatobot2802
    @potatobot28029 ай бұрын

    Thank you so much Corey for your time!

  • @karthikl4692
    @karthikl46925 жыл бұрын

    Thanks Corey right video at right time

  • @stonecoldcold2941
    @stonecoldcold29414 жыл бұрын

    Awesome Tutorial!

  • @ananyamahapatra6597
    @ananyamahapatra6597 Жыл бұрын

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

  • @huy3986
    @huy39863 жыл бұрын

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

  • @arete_
    @arete_2 жыл бұрын

    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

  • @j.n.y790
    @j.n.y7903 жыл бұрын

    FANTASTIC TUTORTIAL! well done

  • @serious6037
    @serious60372 жыл бұрын

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

  • @codewitholgun2166
    @codewitholgun21665 жыл бұрын

    Wow, very nice tutorial :)

  • @andreiolegovich5971
    @andreiolegovich59713 жыл бұрын

    Thank you for creating this tutorial!

  • @bunnybird12
    @bunnybird122 жыл бұрын

    This helped a ton. Thanks!

  • @jupiterXcrash
    @jupiterXcrash5 жыл бұрын

    Thanks for the video! :)

  • @user-ls3ee6hv8x
    @user-ls3ee6hv8x4 жыл бұрын

    Perfect as always !

  • @b00i00d
    @b00i00d4 жыл бұрын

    Great video!

  • @technologysmiths.london6284
    @technologysmiths.london62845 жыл бұрын

    Excellent video, thanks!

  • @jeffgalef121
    @jeffgalef1214 жыл бұрын

    Fantastic video. Thank you for your hard work.

  • @drygordspellweaver8761
    @drygordspellweaver87612 жыл бұрын

    Thank God Corey has a requests tutorial

  • @lindaduong289
    @lindaduong289 Жыл бұрын

    Best tutorial for requests

  • @MusicGameFinatic999
    @MusicGameFinatic9994 жыл бұрын

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

  • @MongooseTacticool
    @MongooseTacticool4 жыл бұрын

    Corey, you're the best :)

  • @md.akib5124
    @md.akib51245 жыл бұрын

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

  • @thatlinuxguy9902
    @thatlinuxguy99023 жыл бұрын

    The best tutorial I've ever seen

  • @user-cy3je1xd1c
    @user-cy3je1xd1c4 жыл бұрын

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

  • @teklehaimanotaman3150
    @teklehaimanotaman31503 жыл бұрын

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

  • @brendleyohmua980
    @brendleyohmua9805 жыл бұрын

    fantastic video. great guy!

  • @call-me-poor9313
    @call-me-poor93133 жыл бұрын

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

  • @SandwichMitGurke
    @SandwichMitGurke5 жыл бұрын

    dude this video is so awesome!!

  • @harissheikh89
    @harissheikh894 жыл бұрын

    Thanks a ton 😁

  • @waiitwhaat
    @waiitwhaat2 жыл бұрын

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

  • @ranjeet1449
    @ranjeet14495 жыл бұрын

    Corey, Just thank you that's all

  • @jag831
    @jag8314 жыл бұрын

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

  • @tymothylim6550
    @tymothylim65503 жыл бұрын

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

  • @nipundewenarayane2603
    @nipundewenarayane26033 жыл бұрын

    great piece of work

  • @robertocardenosa493
    @robertocardenosa4934 ай бұрын

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

  • @runnerwannabe90
    @runnerwannabe905 жыл бұрын

    A great video. Thanks so much.

  • @pratikshinde568
    @pratikshinde5683 жыл бұрын

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

  • @exinty
    @exinty3 жыл бұрын

    Thanks so much for your help.

  • @amirsarrafzadeharasi2214
    @amirsarrafzadeharasi22142 жыл бұрын

    Thank you so much for amazing videos

  • @doncoleman2521
    @doncoleman2521 Жыл бұрын

    Good job!

  • @daegudude1048
    @daegudude10485 жыл бұрын

    Like and thumbs up before watching it!!👍👍

  • @mayawanjiru2020

    @mayawanjiru2020

    5 жыл бұрын

    Yes. Fuck Yes.

  • @LMGaming0
    @LMGaming04 жыл бұрын

    thank you, very well explained