Back to articles
Scraping Podcast Charts: Spotify, Apple, and Chartable Data
How-ToSystems

Scraping Podcast Charts: Spotify, Apple, and Chartable Data

via Dev.to Tutorialagenthustler

Podcast analytics are notoriously opaque. Platforms guard their data closely. But by scraping public charts from Spotify, Apple Podcasts, and Chartable, you can build a comprehensive picture of what's trending in audio content. What We'll Track Top podcast rankings by category Chart movement and velocity Cross-platform performance comparisons Genre and category trends Setup pip install requests beautifulsoup4 pandas matplotlib Apple Podcasts Chart Scraper Apple Podcasts exposes chart data via a public RSS-like endpoint: import requests import time from datetime import datetime def scrape_apple_podcast_charts ( genre_id = 26 , country = " us " , limit = 100 ): """ Scrape Apple Podcasts top charts. Genre IDs: 26=All, 1301=Arts, 1303=Comedy, 1304=Education, 1307=Health, 1309=TV, 1311=Music, 1314=Religion, 1318=Technology, 1321=Business, 1324=Society, 1325=News """ url = ( f " https://rss.applemarketingtools.com/api/v2/ { country } " f " /podcasts/top/ { limit } /genre= { genre_id } /json

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles