Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Section 3 Recap & Course Conclusion

This lesson is a recap of the third section. You learned about:

  • Authentication
  • SSL Certificate Verification
  • Performance
    • Timeouts
    • The Session Object
    • Max Retries
Download

Course Slides (PDF)

158.0 KB

Take the Quiz: Test your knowledge with our interactive “HTTP Requests With the "requests" Library” quiz. You’ll receive a score upon completion to help you track your learning progress:


Interactive Quiz

HTTP Requests With the "requests" Library

Test your understanding of the Python "requests" library for making HTTP requests and interacting with web services.

adriangaluszka on May 11, 2019

Great and up to date course!

Abby Jones on June 27, 2019

Thank you Chris! This filled in a huge gap in my programming knowledge.

hithard on Sept. 1, 2019

Very simple way to explain complicated stuff. Thanks a lot

izogix on Sept. 10, 2019

Excellent!

amitmalur on Sept. 10, 2019

Good information shared in the tutorial

Amitesh Sinha on Oct. 5, 2019

This is an excellent tutorial!

juansebasvasquez on Dec. 27, 2019

This was excellent - lots of context and foundational knowledge to help further ground and grow my scraping skills.

Ganesh Pai on April 4, 2020

How about handling requests with ssl ?. Because in java we used to create Trust Certificate for handling the repsonse

Chris Bailey RP Team on April 6, 2020

Hi @Ganesh Pai, Requests by default uses SSL. There is a method to turn verification off, which is covered in the previous video lesson “SSL Certificate Verification”. Here is a link to the Request Docs with more information regarding using SSL and how it is on by default. Requests uses a package called Certifi that will be installed when using pip, but may be a good practice to look for updates as certificates and such change. I hope this helps with what you are looking for.

mikesult on May 5, 2020

Thanks Chris, great course. I expecially liked how you explained concepts using the REPL before getting to writing the scripts. It’s a great way to learn and experiment, I’m going to add more of that to my workflow.

Chris Bailey RP Team on May 5, 2020

Thanks @mikesult, It has become my practice now. Also I’m learning a few other tricks from the other authors and course creators. The workflow will always be evolving, which really is a good thing.

Stanley Ndagi on June 2, 2020

Awesome content

I noted unanswered questions in the intermediate slides that I think the users would appreciate answers. All the same. Thanks

WoBa on June 9, 2020

Hey, thanks! Few things: - what is the reason for putting “requests.get” inside “try:” statement ? - isn’t it better to use github.com/psf/requests/blob/master/requests/status_codes.py like “if r.ok:” ? - it would be good to introduce pprint(json) - no example for verify

Abderraouf Z on Dec. 11, 2020

Excellent course. You explain well a lot of content. Just a remark, for me you went a little too fast concerning session. I did not fully understand that concept.

Mark on July 5, 2021

My first web scraping intro. I’m a blank slate. Having said that, I know this isn’t intended to be intense teaching material, but man, that was a flyby. But I have a base of sorts to continue learning.

jramirez857 on Dec. 31, 2021

Great course! I had used requests before briefly and enjoyed filling in some gaps about its features.

Sandhya on Jan. 2, 2023

Hi, how we can handle ‘Resetting dropped connection:’ with

session?

Become a Member to join the conversation.