- Mastering Concurrency in Python
- Quan Nguyen
- 137字
- 2021-06-10 19:24:06
Concurrent Web Requests
This chapter will focus on the application of concurrency in making web requests. Intuitively, making requests to a web page to collect information about it is independent to applying the same task to another web page. Concurrency, specifically threading in this case, therefore can be a powerful tool that provides a significant speedup in this process. In this chapter, we will learn the fundamentals of web requests and how to interact with websites using Python. We will also see how concurrency can help us make multiple requests in an efficient way. Finally, we will look at a number of good practices in web requests.
In this chapter, we will cover the following concepts:
- The basics of web requests
- The requests module
- Concurrent web requests
- The problem of timeout
- Good practices in making web requests
推薦閱讀
- Puppet 4 Essentials(Second Edition)
- Learning LibGDX Game Development(Second Edition)
- Software Defined Networking with OpenFlow
- JavaScript+DHTML語法與范例詳解詞典
- SQL Server 2012數(shù)據(jù)庫技術(shù)及應(yīng)用(微課版·第5版)
- Linux核心技術(shù)從小白到大牛
- 程序員考試案例梳理、真題透解與強(qiáng)化訓(xùn)練
- Swift 3 New Features
- RabbitMQ Cookbook
- Instant Lucene.NET
- 軟件體系結(jié)構(gòu)
- Photoshop CC移動UI設(shè)計案例教程(全彩慕課版·第2版)
- 嵌入式Linux C語言程序設(shè)計基礎(chǔ)教程
- AI自動化測試:技術(shù)原理、平臺搭建與工程實(shí)踐
- 程序員的成長課