题目
以下哪些Python库可以用于网页爬取?A. requestsB. BeautifulSoupC. pandasD. matplotlib
以下哪些Python库可以用于网页爬取?
A. requests
B. BeautifulSoup
C. pandas
D. matplotlib
题目解答
答案
AB
A. requests
B. BeautifulSoup
A. requests
B. BeautifulSoup
解析
网页爬取是指从网页中自动提取数据的过程。在Python中,requests库用于发送HTTP请求,BeautifulSoup库用于解析HTML和XML文档。pandas和matplotlib库主要用于数据处理和可视化,不直接用于网页爬取。