Git Product home page Git Product logo

mixcloud-rss-download's Introduction

mixcloud-rss-download

Enables download of Mixcloud Cloudcasts via traditional RSS clients

Right now all the configuration is in the top of the index.php file - there you'll set:

  • date_default_timezone_set('America/New_York'); /* timezone you are in */
  • $my_podcast = ''; /* www.mixcloud.com/JUSTTHISBIT/ */
  • $my_feed_url = ""; /* url where your cron job saves the output feed - used for self-reference */
  • $language = "en-us";

Usage: Set a cron job or other way of saving the output of index.php to feed.xml

Run the cron job (or allow it to run), then check feed.xml at the place you saved it.

Enjoy!

mixcloud-rss-download's People

Contributors

atillay avatar jeckman avatar voidet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mixcloud-rss-download's Issues

Use API for page pull

Right now the script fetches each page of the cloudcast and parses the dom to get the list of episodes - but then we use the api.mixcloud.com calls to get user info and info about each episode.

Would probably be cleaner to just use api.mixcloud.com to get the list in the first place - avoid the need to parse dom.

Updated code?

Hi John, this code is no longer working as is. Is there an update somewhere? I tried fixing it and noticed all the urls were pointing to http when it looks like mixcloud is using https now. That gets farther but errors out on the $episode block on finding the elements.

Get per-episode description

Right now it just shoves the episode title into the description.

At the user page, which lists their casts, you don't get more than the title. (See http://www.mixcloud.com/TWR/). I could fetch and parse each individual episode while in the foreach loop, but we're talking ~24 more requests just to generate the feed.

wrong date "fomat" - episode pubDate

i have problem with line, or previous lines of code
<pubDate>". date(DATE_RSS,$pubDate) ."</pubDate>
because it generates wrong dates, for example

Thu, 01 Jan 1970 01:00:00 +0100

and my podcast downloader gPodder have problem with date range/value and returns

mktime argument out of range

i do not need right date, however it needs some fixes, or deletion of line with that code

Downloads are slow

Downloads seem limited by Mixcloud to play speed - so a 2hr podcast will take 2 hrs to download.

Incorporation into RSS-Bridge

Hi John,

first: thanks for your script! I was wondering, whether you heard of

https://github.com/RSS-Bridge/rss-bridge

Basically, it has the same goal as you: getting back RSS where it was stripped. There are several bridges that scrape content off of a multitude of pages (see the "bridges" subfolder).

I was wondering, whether you would be willing to incorporate your mixcloud rss-downloader into RSS-Bridge?

Would be great to have it as a bridge!

Cheers
Thomas

Cron job

I'm pretty new in all this about RSS and podcast. I just want to upload my shows from Mixcloud on my podcast show on iTunes. So far this is what I understand:

$my_podcast = /* www.mixcloud.com/mixcloudnameaccount/ */

$my_feed_url = ""; /* no clue */ -------> Is this my podcast show link from iTunes?

Thanks

empty feed

I'm getting an empty feed with everything but content items as shown below. It seems your demo feed has the same issues:

<?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
         xmlns:atom="http://www.w3.org/2005/Atom">  
    <channel>
        <title><![CDATA[Myon & Shane 54]]></title>
        <link>https://www.mixcloud.com/myonandshane54/</link>
        <description><![CDATA[Hailing from Hungary, Myon & Shane 54 have achieved extraordinary success in the international dance music scene, having established a solid reputation for themselves with notable     releases including numerous Beatport number ones and consistent rankings among DJ Mag’s Top 100 DJs. They produce for some of the biggest names in music, are constant fixtures in set lists of some of     world’s best known DJs, and regularly feature in a multitude of EDM radio show playlists.

Myon & Shane 54 also host their own weekly radio show “International Departures”, frequently one of the most popular music podcasts around due in large part to their shameless, all-encompassing approach to mash-    ups. In addition, their extensive tour diary “International Departures TV” provides an in depth view of life on the road for the well-traveled duo.
]]></description>
        <image>
            <url>http://images-mix.netdna-ssl.com/w/300/h/300/q/85/upload/images/profile/3cf34fc2-d6a6-44b3-880a-97454355fa1c.jpg</url>
            <link>https://www.mixcloud.com/myonandshane54/</link>
            <description><![CDATA[Myon & Shane 54]]></description>
            <title><![CDATA[Myon & Shane 54]]></title>
        </image>
        <language>en-us</language>
        <lastBuildDate>Tue, 24 Mar 2015 10:23:27 EDT</lastBuildDate>
        <pubDate>Tue, 24 Mar 2015 10:23:27 EDT</pubDate>
        <itunes:explicit>no</itunes:explicit>
        <atom:link href="http://192.168.0.200" rel="self" type="application/rss+xml" /> 


    </channel>
</rss>    

Wrong mp3 url

When you generate a feed with more than about 30 cloudcasts, it starts getting wrong url for mp3

Mixcloud items limit

Hi, your script works great but i found an issue. Mixcloud only displays the first 24 casts on the profil page so the generated rss don't get all the casts if you have more than 24 casts.
--- EDIT ---
I did a few modifications on your code and i'm now able to get all podcasts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.