{"id":7427,"date":"2018-01-11T16:20:53","date_gmt":"2018-01-11T16:20:53","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=7427"},"modified":"2024-11-16T15:24:37","modified_gmt":"2024-11-16T15:24:37","slug":"download-from-bbc-iplayer-via-get-iplayer-in-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2018\/01\/download-from-bbc-iplayer-via-get-iplayer-in-ubuntu\/","title":{"rendered":"Download TV\/Radio from BBC iPlayer via get-iplayer in Ubuntu"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-47556\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/iplayer-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/github.com\/get-iplayer\/get_iplayer\" target=\"_blank\" rel=\"noopener noreferrer\">Get-iplayer<\/a> is a command line tool for downloading TV and radio programmes from BBC iPlayer. The tool features:<\/p>\n<ul>\n<li>Downloads TV and radio programmes from BBC iPlayer<\/li>\n<li>Allows multiple programmes to be downloaded using a single command<\/li>\n<li>Indexing of most available iPlayer catch-up programmes (not BBC Three, Red Button or iPlayer Exclusive)<\/li>\n<li>Caching of index with automatic updating<\/li>\n<li>Regex search on programme name<\/li>\n<li>Regex search on programme description and episode title<\/li>\n<li>Filter search results by channel<\/li>\n<li>Direct download via programme ID or URL<\/li>\n<li>PVR capability (may be used with cron or Task Scheduler)<\/li>\n<li>HTTP proxy support<\/li>\n<li>Perl 5.10.1+ required, plus LWP, LWP::Protocol::https, XML::LibXML and Mojolicious modules<\/li>\n<li>Requires ffmpeg for conversion to MP4 and AtomicParsley for metadata tagging<\/li>\n<li>Runs on Linux\/BSD (Ubuntu, Fedora, OpenBSD and others), macOS (10.10+), Windows (7\/8\/10 &#8211; XP\/Vista not supported)<\/li>\n<\/ul>\n<h3>Install get-iplayer<\/h3>\n<p>There are so far 2 ways to install the software package in Ubuntu. They include:<\/p>\n<ul>\n<li><b>Snap<\/b> package &#8211; runs in sandbox environment.<\/li>\n<li>Native <b>.deb<\/b> package through Ubuntu PPA.<\/li>\n<\/ul>\n<p>Choose either one that you prefer.<\/p>\n<h4>Option 1: Snap package<\/h4>\n<p>For the latest get-iplayer Snap package, either launch Ubuntu Software or App Center, then search &amp; click install it.<\/p>\n<div id=\"attachment_47554\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-appcenter.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-47554\" class=\"size-large wp-image-47554\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-appcenter-700x441.webp\" alt=\"\" width=\"610\" height=\"384\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-appcenter-700x441.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-appcenter-300x189.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-appcenter-768x484.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-appcenter.webp 1035w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><p id=\"caption-attachment-47554\" class=\"wp-caption-text\">get-iplayer in App Center<\/p><\/div>\n<p>Or, you may also open terminal (Ctrl+Alt+T) and run the following command instead to install the snap package:<\/p>\n<pre style=\"border: None;\">snap install get-iplayer<\/pre>\n<h4>Option 2: Ubuntu PPA<\/h4>\n<p>For those who prefer the native <code>.deb<\/code> package, there&#8217;s an <a href=\"https:\/\/launchpad.net\/~m-grant-prg\/+archive\/ubuntu\/utils\" target=\"_blank\" rel=\"noopener\">PPA repository<\/a> that contains the most recent package for Ubuntu 24.10, Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04. Even the old Ubuntu 16.04 and Ubuntu 18.04 are also supported.<\/p>\n<p>1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:m-grant-prg\/utils<\/pre>\n<p><i>Type user password when it asks (no asterisk feedback) and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-ppa.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47557\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-ppa-700x454.webp\" alt=\"\" width=\"610\" height=\"396\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-ppa-700x454.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-ppa-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/get-iplayer-ppa.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>2. Then, install the .deb package via command:<\/p>\n<pre>sudo apt install get-iplayer<\/pre>\n<p>Linux Mint users may need to run <code>sudo apt update<\/code> first to manually refresh package cache, while this is done automatically while adding PPA in Ubuntu.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/apt-getiplayer.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47558\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/apt-getiplayer-700x454.webp\" alt=\"\" width=\"610\" height=\"396\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/apt-getiplayer-700x454.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/apt-getiplayer-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/01\/apt-getiplayer.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>3. The PPA also contains many other software packages. You may run the command below to remove the PPA after installed <code>get-iplayer<\/code> in case of any package conflict.<\/p>\n<pre>sudo add-apt-repository --remove ppa:m-grant-prg\/utils<\/pre>\n<p>For Linux Mint, also run <code>sudo apt update<\/code> to update cache.<\/p>\n<h3>Usage \/ examples:<\/h3>\n<p>As mentioned, this is a command line tool. You need to open terminal and run any command below to use it.<\/p>\n<ul>\n<li>List all TV programmes with long descriptions:\n<pre style=\"border: none;\">get_iplayer --long \".*\"<\/pre>\n<\/li>\n<li>List all radio programmes:\n<pre style=\"border: none;\">get_iplayer --type=radio \".*\"<\/pre>\n<\/li>\n<li>List all TV and radio programmes with &#8220;doctor who&#8221; in the name:\n<pre style=\"border: none;\">get_iplayer --type tv,radio \"doctor who\"<\/pre>\n<\/li>\n<li>List all BBC One programmes:\n<pre style=\"border: none;\">get_iplayer --channel=\"BBC One\" \".*\"<\/pre>\n<\/li>\n<li>List Radio 4 and Radio 4 Extra programmes with &#8220;Book at Bedtime&#8221; in the title:\n<pre style=\"border: none;\">get_iplayer --type=radio --channel=\"Radio 4\" \"Book at Bedtime\"<\/pre>\n<\/li>\n<li>Record TV programme number 208 (index from search results) in HD, with SD fallback if HD not available:\n<pre style=\"border: none;\">get_iplayer --get 208<\/pre>\n<p>[default is to download best available]<\/p>\n<p>OR<\/p>\n<pre style=\"border: none;\">get_iplayer --get 208 --tvmode=best<\/pre>\n<\/li>\n<li>Record TV programme number 208 and download subtitles in SubRip (SRT) format:\n<pre style=\"border: none;\">get_iplayer --get 208 --subtitles<\/pre>\n<\/li>\n<li>Record multiple TV programmes (using index numbers from search results):\n<pre style=\"border: none;\">get_iplayer --get 208 209 210<\/pre>\n<\/li>\n<li>Record a TV or radio programme using its iPlayer URL:\n<pre style=\"border: none;\">get_iplayer http:\/\/www.bbc.co.uk\/iplayer\/episode\/b01sc0wf\/Doctors_Series_15_Perfect\/<\/pre>\n<\/li>\n<li>Record a TV or radio programme using the PID (b01sc0wf) from its iPlayer URL:\n<pre style=\"border: none;\">get_iplayer --pid=b01sc0wf<\/pre>\n<\/li>\n<\/ul>\n<h3>Uninstall get-iplayer<\/h3>\n<p>For any reason, you may remove the <code>get-iplayer<\/code> .deb package by running command:<\/p>\n<pre>sudo apt remove --autoremove get-iplayer<\/pre>\n<p>Or, remove the Snap package using either Ubuntu Software \/ App Center, or the <code>snap remove get-iplayer<\/code> command.<\/p>","protected":false},"excerpt":{"rendered":"<p>Get-iplayer is a command line tool for downloading TV and radio programmes from BBC iPlayer. The tool features: Downloads TV and radio programmes from BBC iPlayer Allows multiple programmes to be downloaded using a single command Indexing of most available iPlayer catch-up programmes (not BBC Three, Red Button or iPlayer Exclusive) Caching of index with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":47556,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[1520],"class_list":["post-7427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-review","tag-bbc-iplayer"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=7427"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7427\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/47556"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=7427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=7427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=7427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}