npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

itunes-podcasts

v1.0.1

Published

search and get podcast from itunes

Downloads

4

Readme

ITUNES-PODCAST

itunes-podcasts is module that can get Podcast in itunes

using api site is here

Install

npm install itunes-podcasts

Usage

All functions in this module return Promise

Get Podcast List

queries

query's type can be object or string

| config | required | etc | default | |:----------|:----------|:--------|:-------| | term | true | search query | | | country | false | [iso country code](http://en.wikipedia.org/wiki/ ISO_3166-1_alpha-2) | 'US' | | entry | false | 'podcastAuthor' or 'podcast' | | | lang | false | 'en_us' or 'ja_jp' | | | limit | false | 1 to 200 | 50 |

note. country is not podcast's origin place, that is sending country

import itunesPodcasts from 'itunes-podcasts'
//or
var itunesPodcasts = require('itunes-podcasts')

const queries = {
  country: 'KR',
  term: '이진우의 손에 잡히는 경제'
}
//or
const queries = '이진우의 손에 잡히는 경제'


itunesPodcasts.getPodcasts(queries).then((response) => {
  //   {
  //   resultCount: 1,
  //   results:
  //   [ { wrapperType: 'track',
  //     kind: 'podcast',
  //     artistId: 384922652,
  //     collectionId: 437788220,
  //     trackId: 437788220,
  //     artistName: 'MBC',
  //     collectionName: '이진우의 손에 잡히는 경제',
  //     trackName: '이진우의 손에 잡히는 경제',
  //     collectionCensoredName: '이진우의 손에 잡히는 경제'
  //   }
  //   ]
  // }
})

get podcast and episodes

collectionId is number of itunes's id

parsing modules using node-podcast-parser
so, result form is the same as node-podcast-parser module

import itunesPodcasts from 'itunes-podcasts'
//or
var itunesPodcasts = require('itunes-podcasts')

const collectionId = 437788220
itunesPodcasts.getPodcastWithEpisodes(collectionId).then((result) => {
  // console.log(result)
  // { categories: [ 'Business' ],
  //   title: '이진우의 손에 잡히는 경제',
  //   link: 'http://mini.imbc.com/index_v3.html?service=podcast&program=1000671100000100000',
  //   author: 'MBC',
  //   description:
  //    { long: 'MBC 표준FM 매일 오전 11시10분 ~ 12시',
  //      short: 'MBC 표준FM 매일 오전 11시10분 ~ 12시' },
  //   language: 'ko-ko',
  //   image: 'http://img.imbc.com/adams/Program/20176/131428386515631292.jpg',
  //   owner: { name: 'iMBC', email: '[email protected]' },
  //   episodes:
  //    [ { title: '9/27(목) 2부  "농가와 도심을 일자리로 이어주는 ‘푸마시’ 등"',
  //        description: '5. <주목! 농업 스타트업>\r\n"농가와 도심을 일자리로 이어주는 ‘푸마시’ 등" \r\n- 슈미트 조가연 팀장',
  //        enclosure: [Object],
  //        guid: 'http://podcastfile.imbc.com/cgi-bin/podcast.fcgi/podcast/economy/ECONOMY_20180927_2.mp3',
  //        published: 2018-09-27T02:40:00.000Z },
  //      { title: '9/27(목) 1부 "글로벌 생산거점으로 주목받는 베트남. 왜 베트남인가?"',
  //        description: '1. <오늘의 숫자>\r\n"0.75%포인트"\r\n\r\n2. <경제 뉴스 따라잡기>\r\n-이데일리 성문재 기자\r\n\r\n3. <친절한 경제>\r\n"오피스텔은 장기수선충당금을 안걷어도 되나요?"\r\n\r\n4. <이슈 인터뷰>\r\n"글로벌 생산거점으로 주목받는 베트남. 왜 베트남인가?" \r\n- 한국무역협회 김인산 베트남 호치민 지부장',
  //        enclosure: [Object],
  //        guid: 'http://podcastfile.imbc.com/cgi-bin/podcast.fcgi/podcast/economy/ECONOMY_20180927_1.mp3',
  //        published: 2018-09-27T02:05:00.000Z },
  //   ]}
  // }
})

License

MIT