通过python中的ajax使用URL生成JSON文件
我正在尝试使用网络扫描Shazam。有人已经帮助我了解我要传递的美丽汤的URL是通过Ajax加载的。
我不确定如何使用什么来从我通过的URL中生成JSON文件?
我想为许多最稳定的歌曲生成JSON文件。
Shazam的URL是: https://wwwww.shazam.com/charts/charts/charts/charts/charts/top-200/south-200/south-200/south-200/south--200/非洲,
这是在全球Shazamed歌曲上生成的JSON文件: https:// www。 shazam.com/shazam/v3/en-us/us/web/web/web/tracks/world-chart-world
我正在使用Python 3。
非常感谢您的帮助
I am trying to web-scarp Shazam. Someone already helped me understand that the url that I was passing into Beautiful soup is loaded through Ajax.
I am not to sure how what I need to use to generate the json files from the url's I pass?
I want to generate json files for many countries most shazamed songs.
The url from Shazam is:
https://www.shazam.com/charts/top-200/south-africa,
This is the json file generated on the global shazamed songs:
https://www.shazam.com/shazam/v3/en-US/US/web/-/tracks/world-chart-world
I am using python 3.
Thanks so much for the assistance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以直接查询API:
对于南非: https://www.shazam.com/shazam/v3/no/no/web/web/web/web/web/web/web/web/tracks/ip-country-country-chart-chart-chart-chart-chart-za?pagessize = 200200 = 200& startfrom = 0
您必须更改不同国家/地区的
ip-country-part-za
的部分。如果我想要挪威的图表,我将其更改为ip-country-part-no
,所以这是我要做的:
You can query the api directly:
for South africa its: https://www.shazam.com/shazam/v3/en/NO/web/-/tracks/ip-country-chart-ZA?pageSize=200&startFrom=0
and you have to change the part that says
ip-country-part-ZA
for different countries. If i want charts from Norway i change it toip-country-part-NO
so here is what i would do: