【发布时间】:2019-05-30 17:47:40
【问题描述】:
为了从谷歌商店拉出评论,我正在努力学习图书馆美汤。我写了一个代码,应该让我获得所有评论(包括星级、日期和评论者的姓名),但输出只是一个空列表。这个问题可能是一些非常基本的问题,我只是太缺乏经验而无法知道。
from urllib.request import urlopen
from bs4 import BeautifulSoup as soup
my_url = 'https://play.google.com/store/apps/details?id=com.playstudios.popslots&showAllReviews=true'
uclient = urlopen(my_url)
page_html = uclient.read()
uclient.close()
page_soup = soup(page_html, "html.parser")
reviews = page_soup.findAll("div",{"class":'d15Mdf bAhLNe'})
len(reviews)
输出为0。
我应该怎么做才能解决这个问题?
【问题讨论】:
标签: python web-scraping beautifulsoup