get_iplayer | grabbing tv and radio from BBC iPlayer
kandi X-RAY | get_iplayer Summary
kandi X-RAY | get_iplayer Summary
get_iplayer -- tool for accessing tv and radio from bbc iplayer. the bbc currently only provides two choices for accessing iplayer content from a regular machine, either through it's windows desktop client or through adobe flash. there are apps for the iphone and other devices and some set top boxes as well. what the bbc do not cater for are people who use alternative operating systems or who do not wish to use the bbc's selected technologies (which, frankly, should be anyone not running windows since flash's performance is atrocious). the bbc have a well documented platform neutrality policy which they seem to be
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of get_iplayer
get_iplayer Key Features
get_iplayer Examples and Code Snippets
Community Discussions
Trending Discussions on get_iplayer
QUESTION
I'm looking for some advice as to how to automate commands via Terminal using a Mac.
I'm using a CLI programme called get_iPlayer which essentially allows you to download and store BBC iPlayer content locally. This isn't actually why I'm using it though. I'm collecting data about its catalogue (for academic research purposes, not commercial use) and it's been incredibly useful to that end. It caches a whole bunch of data about all the programmes in the catalogue, but not ALL of the available data.
To get that other data you have to specify the particular programme via a command in terminal which will then download a small xml file containing a relevant metadata. Here's what the command looks like:
get_iplayer --type=tv --pid --metadata-only
I have a list of all of the unique programme codes (they're called pid
) in a csv file, and I'm wondering if it would be possible to automate this process. I.e. write a script that runs that line but with a different pid
each time.
There are a couple of caveats worth mentioning:
- I only really have experience of using R. I suspect python will be better, and if that's the only option, then fair enough!
- There are 129,000 of these to look up, so if it is possible to automate this process, I would need to write a script that adds a delay between each new query so as not to kill the BBC servers!
Any advice on how to approach this would be most welcome. I have a very limited knowledge of programming, so apologies if this is a very obvious question!
...ANSWER
Answered 2021-Jul-12 at 13:20R's system
or system2
can call an external program just fine, though I personally prefer the processx
package for its better handling of arguments. My guess is that you can do something like this (unverified, I don't have that cli tool):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install get_iplayer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page