This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on Sep 15, 2013 | |
@author: Mohammad reza Kamalifard | |
''' | |
import Image | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e 'import time\nprint abs(int(time.time() - 1466462040 ))' | python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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): |