Python Requests Essentials
暫譯: Python Requests 基礎精要

Rakesh Vidya Chandra, Bala Subrahmanyam Varanasi

  • 出版商: Packt Publishing
  • 出版日期: 2015-05-29
  • 售價: $1,690
  • 貴賓價: 9.5$1,606
  • 語言: 英文
  • 頁數: 122
  • 裝訂: Paperback
  • ISBN: 1784395412
  • ISBN-13: 9781784395414
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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

About This Book

  • A fast-paced guide that demonstrates the use of Python Requests with the help of examples
  • Learn web scraping with Beautiful Soup and Python Requests libraries
  • Interact with social networking sites such as Facebook, Twitter, and Reddit to retrieve data from them

Who This Book Is For

If you are a Python administrator or developer interested in interacting with web APIs and have a passion for creating your own web applications, this is the book for you. Basic knowledge of Python programming, APIs, and web services will be an advantage.

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

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!

商品描述(中文翻譯)

學習如何使用 Python Requests 無縫整合您的應用程式與網路服務

本書介紹



  • 一本快速入門的指南,透過範例展示 Python Requests 的使用

  • 學習使用 Beautiful Soup 和 Python Requests 庫進行網頁擷取

  • 與社交網路網站如 Facebook、Twitter 和 Reddit 互動,以從中檢索數據

本書適合誰閱讀


如果您是對與網路 API 互動感興趣的 Python 管理員或開發者,並且熱衷於創建自己的網路應用程式,那麼這本書就是為您而寫的。具備基本的 Python 程式設計、API 和網路服務知識將是個優勢。

您將學到什麼



  • 透過範例展示 Python Requests 的使用

  • 使用 Requests 模組處理請求-回應循環的內部部分

  • 使用 Python Requests 實作 RESTful Web API

  • 使用不同的身份驗證方法對 Requests 進行身份驗證

  • 模擬伺服器行為並與模擬伺服器互動

  • 與社交網路網站如 Facebook、Twitter 和 Reddit 互動

  • 使用 Python Requests 和 BeautifulSoup 擷取網頁數據

  • 使用 Flask 建立自己的網路應用程式

詳細內容


Python 是當今最受歡迎的程式語言之一;Python Requests 庫是全球最佳的客戶端之一,擁有最高的下載量。它允許使用簡單的程序與網路應用程式進行輕鬆的互動。


您將學會如何使用 HTTPretty 模擬 HTTP Requests,並學習如何使用 Requests 與社交媒體互動。本書將幫助您掌握使用 BeautifulSoup 和 Python Requests 庫進行網頁擷取的技巧,然後引導您了解 Requests 在與 API 互動方面的卓越能力。它將賦予您無縫從網路應用程式中提取數據的最佳實踐。最後但同樣重要的是,您將有機會通過使用 Python 和 Flask 實作 RESTful Web API 來提升您的技能!