通过 API 检索 AppStore 图表?
我正在查询 iTunes 应用商店图表以确定给定应用程序的排名。
这需要尽可能深入,以便跟踪应用程序从发布到出现在前 100 名甚至更远的过程中的变化。
有什么想法吗?
I'm looking to query the iTunes appstore charts to determine what position a given app holds.
This would need to go as deep as possible with a view to tracking an apps movement from launch to appearing in the top 100 and further.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您可以从 iTunes RSS 源获取排名前 200 的应用程序、播客等:
http://itunes.apple.com/rss
编辑:iTunes RSS feed 现在将您限制在前 200 名。直到一周前,它还会返回前 400 名
You can get the top 200 apps, podcasts, etc. from the iTunes RSS feeds:
http://itunes.apple.com/rss
edit: The iTunes RSS feeds now limit you to the top 200. Up until a week ago it would return the top 400
有很多网站可以做到这一点,但它们都是通过某种形式的屏幕抓取来操作的。 Apple 没有这方面的 API,而且我怀疑他们永远不会。
There are plenty of sites out there that do this, but they all operate via some flavor of screen scraping. Apple has no API for this, and I doubt they ever will.
应用商店数据采用 XML 格式。您可以使用任意数量的解析器 - 单击 Stack Overflow 页面右上角的搜索字段并输入“iphone xml parse”,例如,询问有关如何在 iPhone 上解析 XML 的问题。
The app store data is in XML format. You can use any number of parsers — click on the search field in the top-right corner of the Stack Overflow page and type "iphone xml parse", for example, for questions about how to parse XML on an iPhone.
如果您使用它直接抓取 Apple 网站,Apple 可能会拒绝您的应用程序,因为它违反了他们的条款和用户协议。如果你想做一个这样的应用程序,我建议你建立自己的服务来抓取Apple,然后使用iPhone应用程序连接到你自己的服务器。
如下所述,有很多获取数据的好方法。请参阅此处和此处
Apple will likely reject your application if you use it to scrape the Apple sites directly as it violates their Terms and User Agreement. If you want to do an app like this, I suggest setting up your own service that scrapes Apple, then use the iPhone app to connect to your own servers.
As mentioned below there are plenty of good ways to grab the data. See here and here
如果您有兴趣检查某个应用程序是否在 App Store 主页、类别主页、新增内容、热门内容或员工精选中得到推荐,您可能需要查看我编写的脚本:
http://www.futuretap.com/blog/scraping-app-store-featured-entries/
If you're interested in checking whether an app is being featured on the App Store homepage a category homepage, in What's new, What's hot or Staff picks, you might wanna have a look at a script I wrote:
http://www.futuretap.com/blog/scraping-app-store-featured-entries/
这将为您提供前五十名歌曲:
https://itunes.apple.com/us/rss/topsongs/limit =50/json
This will give you the top fifty songs:
https://itunes.apple.com/us/rss/topsongs/limit=50/json