These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Python script that uses ion feed to refresh tv.cache

user-622

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

user-637

WOW!

This is fantastic. Thank you. I am sure that this is the answer to my problems.

user-622

But don't stop the work on the web scraping script: I don't think the ion feed will be around for much longer

user-622

I see that head is already using the ion feed, and not in a quick'n'dirty way ;-)
Let's hope they don't pull the plug soon

These forums are archived

See this post for further info