Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Based on your question, I just tried to find a way to do this.</p> <ol> <li><p>So you'll need the podcast ID (should be obvious from the URL if you have it; for instance <code>http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=82884735</code> has the ID "82884735", and <code>http://itunes.apple.com/us/podcast/this-week-in-tech-mp3-edition/id73329404</code> has the ID "73329404").</p></li> <li><p>???</p></li> <li><p>Plug the ID into the URL <code>https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/com.apple.jingle.app.finance.DirectAction/subscribePodcast?id={ID}&amp;wasWarnedAboutPodcasts=true</code> and get the data, where <code>{ID}</code> is your podcast ID. <strong>It's important here to change your user agent string to iTunes.</strong> For this experiment, I used "iTunes/7.4.1". If you don't change it, you'll get something very different.</p></li> <li><p>You'll end up with XML data; an XML plist enclosed in <code>Document</code> and <code>Protocol</code> tags. It will look like</p> <p>&lt;Document> &lt;Protocol> &lt;plist version="1.0"> ... &lt;/plist> &lt;/Protocol> &lt;/Document></p></li> </ol> <p>You can pull the plist data from this and use a library to manipulate it if your language of choice has one. Essentially there'll be a "root" dictionary and a dictionary inside it called "subscribe-podcast". This "subscribe-podcast" dictionary will have a key called "feedURL" – nab the value, and you'll have your RSS feed. I'd recommend trying these steps and following along.</p> <p>An easier to follow representation of the plist is the <a href="http://en.wikipedia.org/wiki/Property_list#NeXTSTEP" rel="noreferrer">NeXTSTEP format</a>, which actually looks a bit like JSON. An excerpt of a dummy podcast plist transformed into this format is as follows (remember that you'll really be getting back an XML-like file):</p> <pre><code>{ "subscribe-podcast" = { … feedURL = "http://feeds.feedburner.com/yaddayaddayadda"; … podcastName = "Lorem Ipsum"; … }; } </code></pre> <p>Now you'll notice in the steps I described that step 2 is missing. This is because I looked at the data that Apple was giving me back manually to get to the URL in step 3. Chances are that you'll want to parse the data yourself in case Apple decides to change the URL, but maybe it's probable for the intermediate HTML to change and break your program anyway. I might go back and look at documenting the steps that should be taken to get at our magic URL in step 3.</p> <p>I tried out this strategy with a few podcasts, and it seems to work well in giving me the RSS feed. Since I don't know any of the languages that you asked for, I can't make any recommendations code-wise. Hope it can get you on your way, though.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload