Esempio n. 1
0
def download_all_app_comments3():
    manager=CoSaManager()
    downloader = CommentDownloader()
    processor = InputProcessor()
    ids = processor.get_ids()
    app_list = [str(a) for a in ids]
    downloader.get_app_comments(app_list[0])
Esempio n. 2
0
def download_all_app_comments():
    downloader = CommentDownloader()
    processor = InputProcessor()
    ids = processor.get_ids()
    app_list = [str(a) for a in ids]
    for app_id in app_list:
        with open('{}_comment.json'.format(app_id),'w') as f:
            json.dump(downloader.get_app_comments(app_id),f)

        sleep(100)