Python 在抓取GooglePlay时,如何迭代批处理?

Python 在抓取GooglePlay时,如何迭代批处理?,python,web-scraping,Python,Web Scraping,我还是一名学生,为了完成我的论文,我需要在GooglePlay上抓取一个应用程序的所有评论,并将其保存在csv文件中。我可以访问前200条评论,但我需要获得~12000条评论。我知道我需要迭代不同的批处理,但似乎没有任何效果 这是我的密码。你能帮忙吗 import pandas as pd from google_play_scraper import app, Sort, reviews_all from pprint import pprint result = app( 'it.

我还是一名学生,为了完成我的论文,我需要在GooglePlay上抓取一个应用程序的所有评论,并将其保存在csv文件中。我可以访问前200条评论,但我需要获得~12000条评论。我知道我需要迭代不同的批处理,但似乎没有任何效果

这是我的密码。你能帮忙吗

import pandas as pd
from google_play_scraper import app, Sort, reviews_all
from pprint import pprint

result = app(
    'it.bnl.apps.banking',
    lang='en', # defaults to 'en'
    country='it' # defaults to 'it'
)

pprint(result)

resultrev = reviews_all(
    'it.bnl.apps.banking',
    sleep_milliseconds=0, # defaults to 0
    lang='en', # defaults to 'en'
    country='it', # defaults to 'it'
    sort=Sort.NEWEST, # defaults to Sort.MOST_RELEVANT
    filter_score_with=None # defaults to None(means all score)
)

pprint(resultrev) 
        
df = pd.DataFrame(resultrev) 
df.to_csv('revs.csv') 
提前谢谢你