1. Brief introduction of tqdm module:
- Description: The progress bar module in python. This module is generally used in the for loop. Note that if you use this module, you cannot use print during the execution of the module.
- Download command: pip install tqdm
- Example of use
from tqdm import tqdm
for i in tqdm(range(1, 10000001), desc='这是一个进度条'):
# pass关键字:保证结构的完整性,不参与程序执行。
pass
- This module can be used in some large-scale python crawler tasks to display the crawling progress of the crawler.
2. API interface capture:
-
API interface: The API interface is responsible for transferring data. In existing websites, except for a few