03_tqdm module introduction/API interface capture/JSON data/static web pages and dynamic web pages

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

insert image description here

  • 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

Guess you like

Origin blog.csdn.net/sz1125218970/article/details/131056287