Skip to Content
Learn Python by Building Data Science Applications
book

Learn Python by Building Data Science Applications

by Philipp Kats, David Katz
August 2019
Beginner
482 pages
12h 56m
English
Packt Publishing
Content preview from Learn Python by Building Data Science Applications

The requests library

As in many other cases, Python has a built-in library to deal with HTTP requests—urllib. It is a great package that allows the handling of requests via a low-level technical interface. We will, however, use requests—a third-party library with a high-level (simpler) interface that uses urllib under the hood. As a third-party library, requests requires separate installation. However, if you have Anaconda Distribution installed, don't worry—requests is already installed!

The library supports many advanced options, including sessions, authentication, and Secure Sockets Layer (SSL) certificates. In this case, however, the only thing we need is the get method of requests, which takes the request URL and optional parameters ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for Data Science

Python for Data Science

Yuli Vasiliev
Introduction to Machine Learning with Python

Introduction to Machine Learning with Python

Andreas C. Müller, Sarah Guido

Publisher Resources

ISBN: 9781789535365Supplemental Content