user-622
02-11-2014, 09:17 PM
As I wrote in another topic, I wrote a quick'n'dirty python script that uses the ion feed to refresh tv.feeds.
I don't know for how long the ion feed will be available, but for the time being is better that scraping the website.
I use it like this:
python feeds.py > .get_iplayer/tv.cache
if I want to see the progress
python feed.py | tee .get_iplayer/tv.cache
It only works for tv feeds and currently only for the channels I'm interested in (bbc one, two, three and four) but it's easy enough to add other channels and adapt it to radio.
Keep in mind that the ion feed chokes with too many results, that's why I scan by channel and letter, to try and keep the number of results low.
feeds.py_.txt
I don't know for how long the ion feed will be available, but for the time being is better that scraping the website.
I use it like this:
python feeds.py > .get_iplayer/tv.cache
if I want to see the progress
python feed.py | tee .get_iplayer/tv.cache
It only works for tv feeds and currently only for the channels I'm interested in (bbc one, two, three and four) but it's easy enough to add other channels and adapt it to radio.
Keep in mind that the ion feed chokes with too many results, that's why I scan by channel and letter, to try and keep the number of results low.
feeds.py_.txt