Skip to content

Kodkollektivet/packt-freebie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packt-freebie

A simple program written in Clojure that claims the free e-book of the day from packt.

Installation

In order to create a runnable jar-file, simply stand in the project catalog and type (leiningen required) :

$ lein uberjar

Usage

After a jar-file has been created, run it using the following syntax:

$ java -jar packt-freebie-0.1.0-standalone.jar [cfg-path]

where 'cfg-path' is the file-path to a config file that contains the email-address and password seperated by a whitespace. packt-freebie will then login to your account and claim the free e-book of the day. It has no scheduler, so you need to put in in a crontab or such in order to run it daily.

Options

Examples

filename: credentials.txt

file-contents: 'your@email.com password'

$ java -jar packt-freebie-0.1.0-standalone.jar credentials.txt

Future functionality

Ability to download the book as pdf after the book has been claimed.

License

Distributed under the GPLv3 (https://www.gnu.org/licenses/gpl-3.0.html) license. Have fun.

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

6 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors