Git Product home page Git Product logo

infoq-downloader's Introduction

InfoQ downloader

InfoQ is a great resource for many useful sessions. The way they view presentations sync'ed with slides is cool. Unfortunately, I have a slow internet connection which makes my viewing experience sucks. To solve this, I made this scripts which downloads their page, video & slides.

Installation

On Windows, just download this file

On Linux, run the following

git clone https://github.com/mtayseer/infoq-downloader.git
cd infoq-downloader
pip install -r requirements.txt

Usage

python infoq_downloader.py http://www.infoq.com/presentations/github-evolution

On Windows infoq_downloader.exe http://www.infoq.com/presentations/github-evolution

Features

  1. Console app
  2. Supports download resuming of slides & videos
  3. The generated HTML is clean

License

MIT. See LICENSE

infoq-downloader's People

Contributors

alefnula avatar mtayseer avatar varju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

infoq-downloader's Issues

IndexError: list index out of range

C:\Users\Bob\Downloads>infoq_downloader.exe http://www.infoq.com/presentations/testng-groovy-spock

Downloading HTML file
Traceback (most recent call last):
  File "<string>", line 35, in <module>
IndexError: list index out of range

Invalid download URL

here is the error:
requests.exceptions.MissingSchema: Invalid URL '//d1snlc0orfrhj.cloudfront.net/presentations-br/qconsp2015-LucianoRamalho-Python.mp4': No schema supplied. Perhaps you meant http:////d1snlc0orfrhj.cloudfront.net/presentations-br/qconsp2015-LucianoRamalho-Python.mp4?

this worked like a charm:
video_url = 'http:%s' % video_url

File path error on Windows

See this error - it appears to be failing because of a trailing space on the name of the presentation.

infoq_downloader http://www.infoq.com/presentations/fault-tolerance-101-qcon-london
Downloading HTML file
Traceback (most recent call last):
File "", line 61, in
File "F:\tayseer\projects\infoq-downloader-player\build\infoq_downloader\out00
-PYZ.pyz\os", line 157, in makedirs
WindowsError: [Error 3] The system cannot find the path specified: 'downloads\Fault Tolerance 101 /slides'

README: Ubuntu prerequisites

I needed to install the following packages:

sudo apt-get install python-pip libxslt1-dev python-dev 

Also I had to run pip with sudo.

Unicode error when downloading

$ python infoq_downloader.py http://www.infoq.com/presentations/db-history-data-processing\?utm_source\=infoq\&utm_medium\=videos_homepage\&utm_campaign\=videos_row2
Downloading HTML file
Traceback (most recent call last):
File "infoq_downloader.py", line 80, in
if not os.path.exists('{}/slides'.format(presentation_directory)):
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 31: ordinal not in range(128)

$ git log
Sun Oct 19 10:19:24 2014 +0200 dead91c (HEAD, origin/master, origin/HEAD, master) Merge pull request #14 from alefnula/py3 [Mohammad Tayseer]

requests.exceptions.SSLError

Hi,

I'm getting an error when attempting to download a presentation (@Windows):
C:\Users\me\Desktop>infoq_downloader.exe https://www.infoq.com/presentations/panel-business-data-science

Downloading HTML file Traceback (most recent call last): File "<string>", line 32, in <module>
File "F:\tayseer\projects\infoq-downloader-player\build\infoq_downloader\out00-PYZ.pyz\requests.api", line 55, in get
File "F:\tayseer\projects\infoq-downloader-player\build\infoq_downloader\out00-PYZ.pyz\requests.api", line 44, in request
File "F:\tayseer\projects\infoq-downloader-player\build\infoq_downloader\out00-PYZ.pyz\requests.sessions", line 354, in request
File "F:\tayseer\projects\infoq-downloader-player\build\infoq_downloader\out00-PYZ.pyz\requests.sessions", line 460, in send
File "F:\tayseer\projects\infoq-downloader-player\build\infoq_downloader\out00-PYZ.pyz\requests.adapters", line 250, in send
requests.exceptions.SSLError: [Errno 185090050] _ssl.c:343: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

infoq_downloader-error

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.