from bs4 import BeautifulSoup
import requests
url = 'https://uk.trustpilot.com/review/thread.com'
for pg in range(1, 10):
pg = url + '?page=' + str(pg)
soup = BeautifulSoup(page.content, 'lxml')
for paragraph in soup.find_all('p'):
print(paragraph.text)
我想从https://uk.trustpilot.com/review/thread.com 中抓取排名、审查和审查日期,但是,我不知道如何从多个页面中抓取并为抓取结果
相关分类