Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Through a combination of answers from <a href="https://stackoverflow.com/questions/2816881/get-the-latest-podcasts-from-itunes-store-with-link-by-rss-json-or-something">these</a> <a href="https://stackoverflow.com/questions/423714/get-a-list-of-itunes-podcasts-available">two</a> questions, I have found a way to do what I want.</p> <h2>Example of finding podcasts</h2> <p>First: grab a list of podcasts from iTunes, using the RSS generator. I'm not sure how the query parameters work yet, but here is an RSS feed for top tech podcasts in the US.</p> <pre><code>http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppodcasts/sf=143441/limit=25/genre=1318/xml </code></pre> <ul> <li><code>sf</code> relates to country, and is optional. I would guess that this defaults to global if absent. </li> <li><code>genre</code> relates to genre, and is optional. I would guess that this defaults to "all genres" is absent.</li> <li><code>limit</code> is optional, and seems to default to 9.</li> </ul> <p>This gives you an Atom feed of podcasts. You'll need to do some sperlunking with XPath to get to the ITMS id of podcast, but you're looking for the numeric id contained in the URL found at the following XPath: </p> <pre><code>/atom:feed/atom:entry/atom:link[@rel='alernate']/@href </code></pre> <p>For example, the excellent JavaPosse has an id of 81157308.</p> <h2>The Answer to the Question</h2> <p>Once you have that id, you can get another document which will tell you the last episode, and the original feed URL. The catch here is that you need to use an iTunes user-agent to get this document.</p> <p>e.g. </p> <pre><code>wget --user-agent iTunes/7.4.1 \ --no-check-certificate \ "https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/com.apple.jingle.app.finance.DirectAction/subscribePodcast?id=81157308&amp;wasWarnedAboutPodcasts=true" </code></pre> <p>This is a plist containing some metadata about the podcast, including the feed URL. </p> <pre><code>&lt;key&gt;feedURL&lt;/key&gt;&lt;string&gt;http://feeds.feedburner.com/javaposse&lt;/string&gt; </code></pre> <p>The XPath for this could be something like: </p> <pre><code>//key[@text='feedURL']/following-sibling::string/text() </code></pre> <h2>Disclaimer</h2> <p>Not entirely sure how stable any of this is, or how legal it is. YMMV.</p>
    singulars
    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