Giter Club home page Giter Club logo

download_bulk's People

Contributors

monocongo avatar

Watchers

 avatar  avatar

download_bulk's Issues

Add script to download URLs with a numeric range

Create a script that will allow for the download of a collection of files with URLs of the form , for example on the page http://ubu.com/sound/burroughs_junky.html there is a list of files:

http://ubusound.memoryoftheworld.org/burroughs_william/junky/William-S-Burroughs_Junky_01-Junky-I.mp3
http://ubusound.memoryoftheworld.org/burroughs_william/junky/William-S-Burroughs_Junky_02-Junky-II.mp3
http://ubusound.memoryoftheworld.org/burroughs_william/junky/William-S-Burroughs_Junky_03-Junky-III.mp3

so a script that will allow for downloading these needs to loop over a list of URLs to download which include the integer digit and Roman numeral. We'll allow for this by allowing the user to specify the start and end of the digit range and to substitute a string such as "" for the Roman numeral section. For example the command line options might be something like this:

$ python script.py --prefix http://ubusound.memoryoftheworld.org/burroughs_william/junky/William-S-Burroughs_Junky_ --postfix \-Junky-<roman>.mp3 --first 1 --last 36 --dest /home/james/audio/burroughs_junky

We will need to use a backslash on any prefix or postfix arguments that begin with a dash (for correct parsing by argparse and subsequent code to remove the attendant double backslashes.

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.