Python Requests Essentials

Book Description

Learn how to integrate your applications seamlessly with web services using Python Requests

In Detail

Python is one of the most popular programming languages of our era; the Python Requests library is one of the world's best clients, with the highest number of downloads. It allows hassle-free interactions with web applications using simple procedures.

You will be shown how to mock HTTP Requests using HTTPretty, and will learn to interact with social media using Requests. This book will help you to grasp the art of web scraping with the BeautifulSoup and Python Requests libraries, and will then paddle you through Requests impressive ability to interact with APIs. It will empower you with the best practices for seamlessly drawing data from web apps. Last but not least, you will get the chance to polish your skills by implementing a RESTful Web API with Python and Flask!

What You Will Learn

Demonstrate the use of Python Requests with the help of examples

Use the Requests module to deal with the inner sections of the request-response cycles

Implement the RESTful Web API with Python Requests

Authenticate Requests using different authentication methods

Emulate server actions and interact with a mock server

Interact with social networking sites such as Facebook, Twitter, and reddit

Scrape the Web with Python Requests and BeautifulSoup

Build your own web application with Flask

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.