get the latest podcasts from itunes store with link by RSS, JSON or something

后端 未结 4 627
半阙折子戏
半阙折子戏 2020-12-13 11:23

i\'m trying to get the latest podcast informations out of \"itunes store\" to work with this data in several applications (iphone app and web app).

Is there a way to

4条回答
  •  别那么骄傲
    2020-12-13 12:01

    1. Extract id from iTunes-url https://itunes.apple.com/de/podcast/ard-radio-tatort/id310864997?mt=2&uo=2 (in this example "310864997")
    2. You can extract the id, by using the following regex: /id(\d+)/
    3. Enter id into the following url, to get the feed information via Apple's api https://itunes.apple.com/lookup?id={FEED_ID}&entity=podcast
    4. The lookup service will return a JSON file. You will find the rss url at the 'feedUrl'-field inside the JSON.

    There are two adavantages over Volt's solution.

    1. You don't have to fake the browser agent.
    2. You get clean and simple JSON as response.

    If you want to see an live example, have a look at xTunes-Podcatcher, where I implemented the above described technique/steps myself. Just enter your iTunes podcast url and get the RSS url out of it.

提交回复
热议问题