【发布时间】:2021-03-19 06:18:14
【问题描述】:
我正在尝试在 Google 结果中抓取视频面板 例如,我正在搜索 ---> "great+castles"
text="great+castles"
url = f'https://google.com/search?q={text}'
response = requests.get(url)
print(url)
soup = BeautifulSoup(response.text,'html.parser')
a=soup.findAll('div',{'id':'main'})
a
我确实得到了输出响应,但属性与谷歌浏览器上的不同
【问题讨论】:
标签: python web-scraping google-search