Locked learning resources

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

Unlock This Lesson

Locked learning resources

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

Unlock This Lesson

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.

Avatar image for adriangaluszka

adriangaluszka on May 11, 2019

Great and up to date course!

Avatar image for Abby Jones

Abby Jones on June 27, 2019

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

Avatar image for hithard

hithard on Sept. 1, 2019

Very simple way to explain complicated stuff. Thanks a lot

Avatar image for izogix

izogix on Sept. 10, 2019

Excellent!

Avatar image for amitmalur

amitmalur on Sept. 10, 2019

Good information shared in the tutorial

Avatar image for Amitesh Sinha

Amitesh Sinha on Oct. 5, 2019

This is an excellent tutorial!

Avatar image for juansebasvasquez

juansebasvasquez on Dec. 27, 2019

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

Avatar image for Ganesh Pai

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

Avatar image for Chris Bailey

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.

Avatar image for mikesult

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.

Avatar image for Chris Bailey

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.

Avatar image for Stanley Ndagi

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

Avatar image for WoBa

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

Avatar image for Abderraouf Z

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.

Avatar image for Mark

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.

Avatar image for jramirez857

jramirez857 on Dec. 31, 2021

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

Avatar image for Sandhya

Sandhya on Jan. 2, 2023

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

session?

Avatar image for sftfkatc

sftfkatc on May 22, 2024

Even standing up - it went over my head. I will scout out a more project-based introduction and circle back for another attempt at this set of lessons soon (I’m looking forward to coming up to speed) I will check and see if there is another in the archives here at RP.

Become a Member to join the conversation.