Book Image

Python Requests Essentials

By : Rakesh Vidya Chandra, Bala Subrahmanyam Varanasi
Book Image

Python Requests Essentials

By: Rakesh Vidya Chandra, Bala Subrahmanyam Varanasi

Overview of this book

<p>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.</p> <p>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!</p>
Table of Contents (15 chapters)
Python Requests Essentials
Credits
About the Authors
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

What is Flask?


Flask is a small yet powerful framework for creating web applications with Python. It can be called a micro framework. It is so small that if you could build a good rapport with it, you can understand all of its source code. It is powerful because of its goodies called extensions and its ability to provide all the basic services as a whole. The extensions can be added according to the application's requirement. The man behind Flask framework is Armin Ronacher, who released it on April 1, 2010.

Flask goodies are as follows:

  • Flask comes up with an inbuilt development server, which assists you in the development process and in the testing of programs.

  • Error logging is made simple in Flask, with its interactive web-based debugger. When executing your code, if any bug has emerged in the way, an error stack trace will be shown on the web page, which makes it easy to deal with. This can be achieved by setting the flag of app.debug to True.

  • With its lightweight nature, Flask is a perfect...