Git Product home page Git Product logo

groovy-slideshare-downloader's Introduction

groovy slideshare downloader

a groovy script which downloads pdf files from slideshare with crazyworks.jp/slideshare_downloder .

How to run / 実行方法

List 1. How to run this groovy script
$ groovy pdfdl.groovy <URLs list file> <folder>
URLs list file

a file which contains URLs list. Please refer sample files at sample folder.

folder

a folder which stores downloaded pdf files.

If you are behind Proxy, please set JAVA_OPTS as following,

List 2. Proxy configuration for Linux
export JAVA_OPTS="-DproxyHost=proxy.example.com -DproxyPort=8080"
List 3. Proxy configuration for Windows
set JAVA_OPTS=-DproxyHost=proxy.example.com -DproxyPort=8080

For example,

List 4. Execution example
$ groovy pdfdl.groovy sample/grailsDiary.txt grailsDiary
sample/grailsDiary.txt ========== ========== ========== ========== ==========
1/9: making-the-most-of-your-gradle-build ... done
2/9: java-libraries-you-cant-afford-to-miss-66244982 ... done
3/9: ninja-tricks-for-groovy-system-scripting ... done
4/9: ratpack-the-core-for-your-microservices-for-jdkio-2016 ... done
5/9: mastering-grails-3-plugins-gr8conf-us-2016 ... done
6/9: creating-applications-with-grails-angular-js-and-spring-security-gr8conf-us-2016 ... done
7/9: reactive-streams-and-the-wide-world-of-groovy-64526341 ... done
8/9: an-introduction-to-jooq ... done
9/9: groovy-in-the-cloud-64312473 ... done

Then grailsDiary folder has 9 pdf files.

If there are any errors like 503, there is a error URLs list file like grailsDiary.txt.error. So please retry,

List 5. Retry example with errors
$ groovy pdfdl.groovy sample/grailsDiary.txt.error grailsDiary

License / ライセンス

Apache License Version 2.0

Acknowledgements / 謝辞

ChangLog / 変更履歴

  • rev_01, Fix proxy configuration, update sample URLs list files. : 2016-11-12

  • rev_00, Initial release. : 2016-10-16

groovy-slideshare-downloader's People

Contributors

nobusugi246 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.