如何获得“告示牌热门 100 强”通过广告牌 API 列出图表

发布于 2024-12-11 03:51:18 字数 642 浏览 0 评论 0 原文

我已经尝试了几个小时来了解如何准确获取“billboard hot 100”图表(结果与 http://www.billboard.com/#/charts/hot-100)... 但到目前为止还没有成功。

我已经彻底浏览了 http://developer.billboard.com/docs 上的 API 文档...

据我了解,这里 -> developer.billboard.com/docs/read/The_Chart_Service/Resources/Chart_Spec “billboard hot 100”的 ID 为“379”,

但是当我在图表项调用中使用它时,就像这样 -> api.billboard.com/apisvc/chart/v1/list?id=379&format=json&api_key=bvk4re5h37dzvx87h7rf5dqz

我刚刚收到一个错误:(

如果有人有使用 api 的经验请帮助我...

谢谢

I have been trying for hours on how to exactly get the "billboard hot 100" chart (The results matching to http://www.billboard.com/#/charts/hot-100)...
but have had no success till yet.

I have gone through the API documentation at http://developer.billboard.com/docs thoroughly...

And from what i understand from here -> developer.billboard.com/docs/read/The_Chart_Service/Resources/Chart_Spec
"billboard hot 100" has id "379"

But when i use it in chart item call, like this -> api.billboard.com/apisvc/chart/v1/list?id=379&format=json&api_key=bvk4re5h37dzvx87h7rf5dqz

i just get an error :(

if anyone has experience using the api please help me...

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

韬韬不绝 2024-12-18 03:51:18

更新 2020-01-21

RSS 提要现已失效。您可以在 archive.org https://web.archive.org/web/2020*/http://www.billboard.com/rss/charts/hot-100

但是,您现在可能需要使用网络抓取来获取数据。


Billboard API 现在似乎已经死了,没有任何人维护它的迹象。

不过,他们确实提供了 Hot 100 的 RSS 提要,请参阅 http://www.billboard。 com/rss/charts/hot-100。您也许能够从中获得您需要的信息。

Update 2020-01-21

The RSS feed is now dead. You can view a historical snapshot of the feed at archive.org https://web.archive.org/web/2020*/http://www.billboard.com/rss/charts/hot-100.

However you will likely need to use web scraping to get the data now.


The Billboard API seems to dead now with no sign of anyone maintaining it.

However they do provide a rss feed for the Hot 100 see http://www.billboard.com/rss/charts/hot-100. You might be able to get the information you need from that.

潇烟暮雨 2024-12-18 03:51:18

如果您碰巧了解 Python,请查看 billboard.py

从链接页面:

pip install billboard.py
>>> import billboard
>>> chart = billboard.ChartData('hot-100')
>>> song = chart[0]  # Get no. 1 song on chart
>>> song.title
u'One Dance'
>>> song.artist
u'Drake Featuring WizKid & Kyla'
>>> song.weeks  # Number of weeks on chart
15
>>> song.spotifyID
u'11hqMWwX7sF3sOGdtijofF'

If you happen to know Python, check out billboard.py.

From the linked page:

pip install billboard.py
>>> import billboard
>>> chart = billboard.ChartData('hot-100')
>>> song = chart[0]  # Get no. 1 song on chart
>>> song.title
u'One Dance'
>>> song.artist
u'Drake Featuring WizKid & Kyla'
>>> song.weeks  # Number of weeks on chart
15
>>> song.spotifyID
u'11hqMWwX7sF3sOGdtijofF'
黑白记忆 2024-12-18 03:51:18

根据 ProgrammableWeb 上的一个条目,Billboard API 已于 2013 年 5 月正式终止。

正如 Matthew Moisen 上面建议的那样,尝试使用 Python 模块 billboard.py。我几分钟前刚刚尝试过。虽然它的字段(可能还有图表)有限,但它确实提供了至少前 100 个图表的基本数据。

这是 github 存储库: https://github.com/guoguo12/billboard-charts

According to an entry on ProgrammableWeb, the Billboard API was officially terminated in May 2013.

As Matthew Moisen suggested above, try the Python module billboard.py. I just tried it a few minutes ago. While it's limited in fields (and maybe charts), it does provide basic data for at least the top-100 chart.

Here is the github repo: https://github.com/guoguo12/billboard-charts

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文