msusur / codefiction-stats-graphql

20 stars 7 forks source link

Generate link to iTunes, Spotify and Youtube from the top listening list #22

Open msusur opened 5 years ago

msusur commented 5 years ago

It's very difficult to collect all the links through different channels. It would be great to display links in the list that is displayed in Total Listens tab.

uguratar commented 5 years ago

What kind of links are we talking about here? Do you mean deep links of each episode on different platforms? Like: https://simplecast.com/s/b44578c9 https://www.youtube.com/watch?v=H3SxXT4yRC4 https://open.spotify.com/episode/6e6zEAnbp67G5ISBiD9DFX?si=7I1frsd0SNe5xY-yqFBbYA

msusur commented 5 years ago

Yes, my point exactly.

On Sun, 24 Feb 2019 at 14:29, Uğur Atar notifications@github.com wrote:

What kind of links are we talking about here? Do you mean deep links of each episode on different platforms? Like: https://simplecast.com/s/b44578c9 https://www.youtube.com/watch?v=H3SxXT4yRC4

https://open.spotify.com/episode/6e6zEAnbp67G5ISBiD9DFX?si=7I1frsd0SNe5xY-yqFBbYA

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/msusur/codefiction-stats-graphql/issues/22#issuecomment-466782072, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu_L5YE0zQ3sKR3HlZV0zLATFWUYaCxks5vQqHmgaJpZM4bN3gB .

uguratar commented 5 years ago

Great! I will check spotify and iTunes which seems like the tricky ones, YouTube and SimpleCast were the low hanging fruits.

msusur commented 5 years ago

There is an iTunes API, not sure if that’s going to help us though, let me find the key and forward that to you and we’ll take it from there.

On Sun, 24 Feb 2019 at 15:29, Uğur Atar notifications@github.com wrote:

Great! I will check spotify and iTunes which seems like the tricky ones, YouTube and SimpleCast were the low hanging fruits.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/msusur/codefiction-stats-graphql/issues/22#issuecomment-466786821, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu_Lw-y7sDIpQi5YIqSD8u_jwkmbxWlks5vQq_0gaJpZM4bN3gB .

msusur commented 5 years ago

I've found a search API for iTunes.

If you GET into this url https://itunes.apple.com/search?term=codefiction then you'll get the following result;

{
  "resultCount": 1,
  "results": [
    {
      "wrapperType": "track",
      "kind": "podcast",
      "collectionId": 1172391831,
      "trackId": 1172391831,
      "artistName": "Codefiction Community",
      "collectionName": "Codefiction Podcast",
      "trackName": "Codefiction Podcast",
      "collectionCensoredName": "Codefiction Podcast",
      "trackCensoredName": "Codefiction Podcast",
      "collectionViewUrl": "https://itunes.apple.com/us/podcast/codefiction-podcast/id1172391831?mt=2&uo=4",
      "feedUrl": "https://rss.simplecast.com/podcasts/7776/rss",
      "trackViewUrl": "https://itunes.apple.com/us/podcast/codefiction-podcast/id1172391831?mt=2&uo=4",
      "artworkUrl30": "https://is4-ssl.mzstatic.com/image/thumb/Music118/v4/58/11/b4/5811b483-f0bf-a5d9-0c8e-89e0f447347d/source/30x30bb.jpg",
      "artworkUrl60": "https://is4-ssl.mzstatic.com/image/thumb/Music118/v4/58/11/b4/5811b483-f0bf-a5d9-0c8e-89e0f447347d/source/60x60bb.jpg",
      "artworkUrl100": "https://is4-ssl.mzstatic.com/image/thumb/Music118/v4/58/11/b4/5811b483-f0bf-a5d9-0c8e-89e0f447347d/source/100x100bb.jpg",
      "collectionPrice": 0,
      "trackPrice": 0,
      "trackRentalPrice": 0,
      "collectionHdPrice": 0,
      "trackHdPrice": 0,
      "trackHdRentalPrice": 0,
      "releaseDate": "2019-01-31T19:24:00Z",
      "collectionExplicitness": "cleaned",
      "trackExplicitness": "cleaned",
      "trackCount": 70,
      "country": "USA",
      "currency": "USD",
      "primaryGenreName": "Software How-To",
      "contentAdvisoryRating": "Clean",
      "artworkUrl600": "https://is4-ssl.mzstatic.com/image/thumb/Music118/v4/58/11/b4/5811b483-f0bf-a5d9-0c8e-89e0f447347d/source/600x600bb.jpg",
      "genreIds": [
        "1480",
        "26",
        "1318",
        "1448"
      ],
      "genres": [
        "Software How-To",
        "Podcasts",
        "Technology",
        "Tech News"
      ]
    }
  ]
}

It's a bit weak, but might be something worth looking at.