Code Monkey home page Code Monkey logo

nwt-audio's Introduction

Download the Dramatic Audio recordings of the 2013 NWT 

This is a bash script.

For those that do not know what bash is, a linux computer is required for this to work.

This script is 'future-proofed' in that as long as the filename format doesn't change,
any new recordings will be automatically downloaded. If the URL's change, that will require
some script modifications as well.

Run 'get-2013-bible-audio.sh -h ' for a help screen

Getting the list of links can be tricky

Navigate to https://www.jw.org/en/publications/bible/nwt/

Click on the the headphone to open the page


Now view the page source (right click anywhere with Chrome)

Look for iFrame - this is the link you want.

https://apps.jw.org/GETPUBMEDIALINKS?booknum=0&output=html&pub=nwt&fileformat=MP3%2CAAC&alllangs=0&langwritten=E&txtCMSLang=E


Now use lynx to dump the list of links to audio files


poirot-jkstill-~/nwt/audio-2013-18:23:42
> lynx -dump -listonly 'https://www.jw.org/apps/TRGCHlZRQVNYVrXF?booknum=0&output=html&pub=nwt&fileformat=MP3%2CAAC&alllangs=0&langwritten=E&txtCMSLang=E'

References

   1. https://download-a.akamaihd.net/files/media_bible/2e/nwt_15_Ezr_E.mp3.zip
   2. https://download-a.akamaihd.net/files/media_bible/eb/nwt_16_Ne_E.mp3.zip
   3. https://download-a.akamaihd.net/files/media_bible/73/nwt_17_Es_E.mp3.zip
   4. https://download-a.akamaihd.net/files/media_bible/f8/nwt_18_Job_E.mp3.zip
   5. https://download-a.akamaihd.net/files/media_bible/7d/nwt_40_Mt_E.mp3.zip
   6. https://download-a.akamaihd.net/files/media_bible/4d/nwt_41_Mr_E.mp3.zip
   7. https://download-a.akamaihd.net/files/media_bible/30/nwt_42_Lu_E.mp3.zip
   8. https://download-a.akamaihd.net/files/media_bible/9b/nwt_48_Ga_E.mp3.zip
   9. https://download-a.akamaihd.net/files/media_bible/bc/nwt_50_Php_E.mp3.zip
  10. https://download-a.akamaihd.net/files/media_bible/e0/nwt_52_1Th_E.mp3.zip
  11. https://download-a.akamaihd.net/files/media_bible/0b/nwt_53_2Th_E.mp3.zip
  12. https://download-a.akamaihd.net/files/media_bible/d5/nwt_57_Phm_E.mp3.zip
  13. https://download-a.akamaihd.net/files/media_bible/ef/nwt_15_Ezr_E.m4b
  14. https://download-a.akamaihd.net/files/media_bible/1c/nwt_16_Ne_E.m4b
  15. https://download-a.akamaihd.net/files/media_bible/39/nwt_17_Es_E.m4b
  16. https://download-a.akamaihd.net/files/media_bible/7f/nwt_18_Job_E.m4b
  17. https://download-a.akamaihd.net/files/media_bible/83/nwt_40_Mt_E.m4b
  18. https://download-a.akamaihd.net/files/media_bible/eb/nwt_41_Mr_E.m4b
  19. https://download-a.akamaihd.net/files/media_bible/c1/nwt_42_Lu_E.m4b
  20. https://download-a.akamaihd.net/files/media_bible/2d/nwt_48_Ga_E.m4b
  21. https://download-a.akamaihd.net/files/media_bible/a6/nwt_50_Php_E.m4b
  22. https://download-a.akamaihd.net/files/media_bible/0b/nwt_52_1Th_E.m4b
  23. https://download-a.akamaihd.net/files/media_bible/d6/nwt_53_2Th_E.m4b
  24. https://download-a.akamaihd.net/files/media_bible/07/nwt_57_Phm_E.m4b





nwt-audio's People

Contributors

jkstill avatar

Watchers

 avatar

nwt-audio's Issues

Script does not (anymore?) work.

Environment: Linux server 5.4.0-155-generic #172-Ubuntu SMP Fri Jul 7 16:10:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I suspect the webside structer of "https://apps.jw.org/GETPUBMEDIALINKS?booknum=0&output=html&pub=nwt&fileformat=MP3,AAC&alllangs=0&langwritten=E&txtCMSLang=E#page-content" has changed?

bash -x ./get-2013-bible-audio.sh

leads to:

`+ OVERWRITE=1

and ends there

lynx -dump -listonly ' https://apps.jw.org/GETPUBMEDIALINKS?booknum=0&output=html&pub=nwt&fileformat=MP3,AAC&alllangs=0&langwritten=E&txtCMSLang=E#page-content'

leads to

`
References

Visible links:

  1. https://apps.jw.org/GETPUBMEDIALINKS?booknum=0&output=html&pub=nwt&fileformat=MP3,AAC&alllangs=0&langwritten=E&txtCMSLang=E#page-content
  2. https://apps.jw.org/E_HELP?txtHelp=LOGIN1#browsers
  3. https://apps.jw.org/E_LOGIN1
  4. https://apps.jw.org/E_HELP
  5. https://apps.jw.org/E_LEGAL?txtAction=SHOW:LEGALTERMS
  6. https://apps.jw.org/E_LEGAL?txtAction=SHOW:LEGALPRIVACY

Hidden links:
8. https://apps.jw.org/E_LOGIN1
9. https://www.jw.org/en
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.