Google PlayScaper:关键字“ds:15”

2024-05-29 03:11:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用google_play_scraper api刮取google play商店评论。我使用以下代码来废弃数据:

from google_play_scraper import app
result = app('com.nianticlabs.pokemongo')

但是,当我运行第二个命令时,出现以下错误:

KeyError Traceback (most recent call last) in () ----> 1 result = app('com.nianticlabs.pokemongo')

~/anaconda3/lib/python3.6/site-packages/google_play_scraper/init.py in app(app_id, lang, country)

 52 
 53     for k, spec in ElementSpecs.Detail.items():

---> 54 content = spec.extract_content(res) 55 56 result[k] = content

~/anaconda3/lib/python3.6/site-packages/google_play_scraper/constants/element.py in extract_content(self, source) 18 try: 19 result = nested_lookup( ---> 20 source["ds:{}".format(self.ds_num)], self.extraction_map 21 ) 22 except (IndexError, TypeError):

KeyError: 'ds:15'

我试图解决这个问题,但运气不好。有没有人会遇到同样的问题,或者知道如何解决这个问题


Tags: inselfcomappplaylibgoogleds

热门问题