一个轻量级异步iTunes应用商店刮板基于https://github.com/digitalmethodsinitiative/itunesappscraper
async-itunes-app-scraper-dmi的Python项目详细描述
iTunes应用商店刮板
这定义了一个轻量级Python类,可以用来抓取应用程序 来自iTunes应用商店的信息。它定义了几个可以 用于获取给定一组参数的相关应用程序ID,以及 方法来获取有关这些应用程序ID的数据。在
其中大部分内容都是改编自 app-store-scraper,一个 基于nodeJS的scraper可以做类似的事情。但是这个铲运机使用Python。在
入门
以下是关于所有应用程序的详细信息,类似于第一个结果 对于“fortnite”搜索查询:
fromitunes_app_scraper.scraperimportAppStoreScraperimportasyncioimportpprintasyncdefmain():scraper=AppStoreScraper()results=awaitscraper.get_app_ids_for_query("fortnite")# similar = await scraper.get_similar_app_ids_for_app(results[0])asyncforappinscraper.get_multiple_app_details(results):pprint.pprint(app)loop=asyncio.get_event_loop()loop.run_until_complete(main())
文档还没有单独提供,但是代码是相对的
很简单,您可以查看scraper.py
文件来查看什么是方法
以及它们的参数是什么。在
许可证
刮刀是由这个发明的 Digital Methods Initiative,并且是分布式的 在麻省理工学院的执照下。有关详细信息,请参阅许可证。在
- 项目
标签: