Git Product home page Git Product logo

etc_dl's Introduction

ETC-dl - Download Dagens ETC
=============================================================
-------------------------------------------------------------
Copyright (c) 2018-2019  Albin Söderqvist
License: GNU GPLv3 or, at your option, any later version.
-------------------------------------------------------------


What and how?
-------------

When you subscribe to the digital edition of Dagens ETC
(see https://www.etc.se), you receive a URL that starts with
"http://gantrack5.com/".  If you open this in a web browser,
the URL of the actual issue is displayed with some added
nonsense.

ETC-dl tries to generate a clean HTTPS URL to the current,
a previous or even a future issue my means of date arithmetic,
and then download it using libcurl.  Run the program with the
-h option for complete usage information.

The program can be compiled for at least GNU/Linux, macOS
and Windows/Cygwin without modifications.


Compilation and installation
----------------------------

1. Install a curl development package, e.g.
   libcurl4-gnutls-dev or libcurl4-openssl-dev
   on Debian GNU/Linux and derivatives or libcurl-devel
   on Windows/Cygwin

2. Run make

3. Move the single binary to your path, e.g.
   # mv etc-dl /usr/local/bin/


Configuration
-------------

The program will create a configuration file that should
contain the last known date and issue.  In Windows/Cygwin,
it will be created as "config.txt" in the same directory as
the binary.  Otherwise, it will be created as "~/.config/
etc-dl/config".


Known limitations
-----------------

Problems may arise
  1) if Dagens ETC unexpectedly changes the issue number;
  2) if the URL should take a different form;
  3) if URL access should be blocked.

The first can be fixed by manually updating the config file.
The second problem may also be fixable but requires
development. In the third case, I believe the program
becomes useless.


Final words
-----------

If you read Dagens ETC, please support them by subscribing.

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.