Skip to content

Instantly share code, notes, and snippets.

View imami's full-sized avatar

Ebrahim Imami imami

  • PEPCo, Fanap, Parspooyesh , Pishgaman Kavir
  • Tehran,Iran | Yazd, Iran | Xiamen,China
  • X @e_imami
View GitHub Profile
@ShalbafZadeh
ShalbafZadeh / oreilly_downloader.py
Created October 10, 2016 16:58
Download Oreilly Free books by url
#license WTFPL
#example of usage : python oreilly_downloader.py < url_list
#url_list should contain list of urls , a url per line
import sys
import urllib2
from urllib2 import URLError
#making url ready fo download
def reformat_url(url):
Migrated to https://github.com/davidfoerster/apt-remove-duplicate-source-entries