[TUTORIAL] How to install get-iplayer (for downloading BBC radio/TV programmes)

Forum Forums General Software [TUTORIAL] How to install get-iplayer (for downloading BBC radio/TV programmes)

  • This topic has 5 replies, 3 voices, and was last updated Aug 27-3:39 pm by mikey777.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32279
    Member
    mikey777

      I’ve written this tutorial in response to a thread I started at https://www.antixforum.com/forums/topic/difficulty-setting-up-get-iplayer/
      That thread concerned difficulties I experienced with setting up get-iplayer in antiX19.1 and they remained unsolved. Finally I was able to
      crack the problem and would like to share the following, as it may be useful for other forum members.

      Installing get-iplayer
      This tutorial will give you the use of get_iplayer on antiX and any Debian-based distro. The command line interface (terminal) is used to download the currently available TV or radio programmes from the BBC. If you live outside the UK, you may experience difficulty with getting this to work. Key material for this tutorial was sourced and adapted from http://github.com/get-iplayer/get_iplayer/wiki/unix

      Follow these steps:

      1. Install dependencies:

      sudo apt-get update
      sudo apt-get install libwww-perl liblwp-protocol-https-perl libmojolicious-perl libxml-libxml-perl libcgi-pm-perl atomicparsley ffmpeg

      Perl is also a dependency. However, it should be installed by default on your system; check using
      sudo dpkg --list If, by chance it isn’t installed, then install it.

      2. Download the latest get-iplayer release to the working directory:
      sudo wget http://raw.githubusercontent.com/get-iplayer/get_iplayer/master/get_iplayer

      3. Install the get_iplayer script
      sudo install -m 755 ./get_iplayer /usr/local/bin

      At this stage I like to reboot.

      4. Get BBC TV or BBC radio listings
      For a complete list of BBC programmes available for download, use the following commands:

      For TV: get_iplayer “.*”
      For Radio: get_iplayer “.*” --type=radio

      You can then browse the list by scrolling up or down, using the slider button to the right of the terminal.
      You can narrow your search by simply typing the name of the programme or programme-series for either radio or TV. For example, to see what’s available for the Horizon TV-series, type get_iplayer horizon.

      The output from terminal shows:

      $ get_iplayer horizon
      get_iplayer v3.24, Copyright (C) 2008-2010 Phil Lewis
        This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
        This is free software, and you are welcome to redistribute it under certain
        conditions; use --conditions for details.
      Matches:
      3221:	Horizon: 2016 - The Mystery of Dark Energy, BBC Four, b0761llv
      3222:	Horizon: 2020 - Addicted to Painkillers? Britain’s Opioid Crisis, BBC Two, m000dbpf
      3223:	Horizon: 2020 - Chris Packham: 7.7 Billion People and Counting, BBC Two, m000dl6q
      INFO: 3 matching programmes

      5. Downloading a chosen radio or TV programme
      Let’s suppose, that from the Horizon example above, you wish to download the episode “Addicted to Painkillers”. You will need the programme number (3222) or a keyword from the programme’s title (e.g. painkillers).

      So to download the TV programme ‘Horizon’ type the following in terminal:
      (i) either use the programme number:
      get_iplayer -g 3222
      (ii) or, type in a keyword from the title:
      get_iplayer -g painkillers
      NB. The latter option will download all programme titles containing the keyword “Painkillers”.

      For downloading radio programmes, again type the radio programme number or key word, e.g.
      get_iplayer -g --type=radio 34067
      or
      get_iplayer -g --type=radio gardeners

      These commands will, by default, download the highest quality of recording available. If you wish to download a lower quality, you can use additional commands with the above command-line. For details of this see http://github.com/get-iplayer/get_iplayer/wiki/modes

      The advantage with get_iplayer, is that the downloaded programmes may be stored on your device indefinitely. This is an advantage over downloading programmes directly from the BBC website, where they can only be kept and played for a limited period – I think this is around 30 days.

      Hoping this is useful.
      Good luck and enjoy :-)

      Problems you may experience & fixes.
      1. Not all programmes available are listed in terminal.
      For example, only those programmes for programme numbers 7420 to 8306 are listed.
      The fix for this is as follows: in the terminal toolbar (I’m using LXTerminal) go to Edit, Preferences, then Display. Go to the second line in the window, entitled Scroll-back lines: change this from 1000 (default) to say 10,000.

      2. Not all programmes listed will download.
      Sometimes a programme may be listed, but is no longer available. There’s nothing you can do about this.

      • This topic was modified 4 years, 5 months ago by mikey777.
      • This topic was modified 4 years, 5 months ago by mikey777.
      • This topic was modified 4 years, 5 months ago by mikey777.

      ▪ 32-bit antix19.4-core (SysV init)+LXDE legacy install on :
      - (2011) Samsung NP-N145 Plus (JP04UK) – single-core CPU Intel Atom N455@1.66GHz, 2GB RAM, integrated graphics.
      ▪ 64-bit antix21-base (SysV init)+LXDE legacy install on:
      - (2008) Asus X71Q (7SC002) – dual CPU Intel T3200@2.0GHz, 4GB RAM. Intel Mobile 4 Series, integrated graphics
      - (2007) Packard Bell Easynote MX37 (ALP-Ajax C3) – dual CPU Intel T2310@1.46GHz, 2GB RAM. SiS Graphics

      #35882
      Member
      frtorres

        Thanks for this tutorial. It seems services were blocked by BBC particularly when you are downloading TV/Radio Programmes. Could you review please?

        #36201
        Member
        mikey777

          If you are outside the UK, services will be blocked by the BBC – it will only work in the UK as mentioned at the start of the tutorial.

          ▪ 32-bit antix19.4-core (SysV init)+LXDE legacy install on :
          - (2011) Samsung NP-N145 Plus (JP04UK) – single-core CPU Intel Atom N455@1.66GHz, 2GB RAM, integrated graphics.
          ▪ 64-bit antix21-base (SysV init)+LXDE legacy install on:
          - (2008) Asus X71Q (7SC002) – dual CPU Intel T3200@2.0GHz, 4GB RAM. Intel Mobile 4 Series, integrated graphics
          - (2007) Packard Bell Easynote MX37 (ALP-Ajax C3) – dual CPU Intel T2310@1.46GHz, 2GB RAM. SiS Graphics

          #65761
          Member
          mikey777

            A second method for Downloading BBC TV and Radio Programmes
            In addition to the method described in post #1, there is another method for searching and downloading BBC TV or BBC Radio programmes – again I should emphasize that this is only available for those living within the U.K. It’s called the ‘PID’ method.

            I prefer the ‘PID method’ as you get access to more programmes from the BBC archives. The listings available using the command get_iplayer “.*” in the terminal, that I described in #1, are not long-term. For example, each day the programme reference numbers change, and any programme for download may only be shown in the listings for up to a week.

            The advantages of the ‘PID method’, over the one described in post #1, are as follows:
            – the programme reference number (or PID number) remains the same, so you can return to finish a download the next day using the same reference number
            – the PID number is found at the BBC website http://www.bbc.co.uk/iplayer , where you can browse programmes available, & find information on their content
            – programmes on the BBC website, including boxsets, are usually available for at least a month, sometimes very much longer
            – like the method described in post #1, any programmes you download can be kept indefinitely – the caveat is that they are for private (non-profit) use.

            How to Download using the PID method:
            Example: At the BBC website, I search for programmes by Simon Reeve, and find episode 2 of Greece with Simon Reeve – see attachment (below). You’ll see the PID number in the URL – for this programme it is p03gk861.

            So to download this programme in the terminal:
            get_iplayer -g --pid=p03gk861

            If you want to download both episode 1 & 2 in the same session, then you need to list the PID numbers for both these programmes:
            get_iplayer -g --pid=p03gk861 --pid=p03gk743

            In fact, you can download any number of programmes in the same session by listing their PIDs numbers, e.g:
            get_iplayer -g --pid=1 --pid=2 --pid=3 --pid=4 --pid=5 etc...

            • This reply was modified 2 years, 10 months ago by mikey777.
            • This reply was modified 2 years, 10 months ago by mikey777.
            • This reply was modified 2 years, 10 months ago by mikey777.
            Attachments:

            ▪ 32-bit antix19.4-core (SysV init)+LXDE legacy install on :
            - (2011) Samsung NP-N145 Plus (JP04UK) – single-core CPU Intel Atom N455@1.66GHz, 2GB RAM, integrated graphics.
            ▪ 64-bit antix21-base (SysV init)+LXDE legacy install on:
            - (2008) Asus X71Q (7SC002) – dual CPU Intel T3200@2.0GHz, 4GB RAM. Intel Mobile 4 Series, integrated graphics
            - (2007) Packard Bell Easynote MX37 (ALP-Ajax C3) – dual CPU Intel T2310@1.46GHz, 2GB RAM. SiS Graphics

            #65787
            Member
            ModdIt

              A Welsh person told me about using a VPN method to watch his favorite own language programmes which are geoblocked. For anyone prepared to
              spend a few USD a month take a look at.

              http://www.vpnranks.com/access/channels/bbc-iplayer-in-germany/

              available VPN methods do not just apply to watching UK programmes.

              • This reply was modified 2 years, 10 months ago by ModdIt.
              #65816
              Member
              mikey777

                A Welsh person told me about using a VPN method to watch his favorite own language programmes which are geoblocked. For anyone prepared to
                spend a few USD a month take a look at.
                http://www.vpnranks.com/access/channels/bbc-iplayer-in-germany/
                available VPN methods do not just apply to watching UK programmes.

                That looks really useful – thanks Moddit. Hopefully that will help others, living overseas who are trying to keep in touch with the BBC broadcasts, even if they have to subscribe to a VPN network to enable them to do so…

                ▪ 32-bit antix19.4-core (SysV init)+LXDE legacy install on :
                - (2011) Samsung NP-N145 Plus (JP04UK) – single-core CPU Intel Atom N455@1.66GHz, 2GB RAM, integrated graphics.
                ▪ 64-bit antix21-base (SysV init)+LXDE legacy install on:
                - (2008) Asus X71Q (7SC002) – dual CPU Intel T3200@2.0GHz, 4GB RAM. Intel Mobile 4 Series, integrated graphics
                - (2007) Packard Bell Easynote MX37 (ALP-Ajax C3) – dual CPU Intel T2310@1.46GHz, 2GB RAM. SiS Graphics

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.