資料內(nèi)容:
一、選擇惠
1. Py thon爬蟲中,以下哪個(gè)庫用于請(qǐng)求網(wǎng)頁?
a. BeautifulSoup
b. Scrapy
c. requests
d. Selenium
2以下哪個(gè)方法可以獲取HT姐中的所有標(biāo)簽?
a. soup. find_all0
b. soup.select(
c. soup. xpathO
d soup. find0
3.在爬蟲中,如何處理JavaScript渲染的頁面?
a使用requests庫
b使用Scrapy庫
c.使用Seleniun庫
d.使用BeautifulSoup庫
4.以下哪個(gè)方法可以獲取網(wǎng)頁中的所有?
a. soup. find_all('a')
b. soup. select(" a')
c. soup. xpath( //a')
d soup.find('a')
5.在爬蟲中,如何實(shí)現(xiàn)多線程爬取?
a.使用requests庫
b.使用Scrapy庫
c.使用多線程模塊
d,使用異步編程
6以下哪個(gè)模塊可以用于處理HTTP響應(yīng)?
a. lib
b. requests