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
| #Install Sublime Text 2 | |
| sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
| sudo apt-get update | |
| sudo apt-get install sublime-text | |
| #Install Oracle Java | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get install oracle-java7-installer | |
| sudo update-alternatives --config java |
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
| import urllib | |
| def start_download(url, base, limit, ctype, ext,file_save_dir): | |
| """Download 'limit' number of files in base+offset.ext form(ex: 2400.jpg to 2452.jpg) from a url | |
| Args: | |
| url: url including the terminal slash | |
| base: base number of the filename | |
| limit: number of files to fetch | |
| ctype: content type of the file | |
| ext: extension of the file |
NewerOlder