4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the Revised BSD License.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 Revised BSD License for more details.
12 Copyright 2016 Cool Dude 2k - http://idb.berlios.de/
13 Copyright 2016 Game Maker 2k - http://intdb.sourceforge.net/
14 Copyright 2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
16 $FileInfo: pymotherless-demo.py - Last Update: 02/25/2016 Ver. 0.4.3 RC 1 - Author: cooldude2k $
19 from __future__
import division
, absolute_import
, print_function
;
20 import re
, os
, sys
, pymotherless
, argparse
;
22 __project__
= pymotherless
.__project
__;
23 __program_name__
= pymotherless
.__program
_name
__;
24 __project_url__
= pymotherless
.__project
_url
__;
25 __version_info__
= pymotherless
.__version
_info
__;
26 __version_date_info__
= pymotherless
.__version
_date
_info
__;
27 __version_date__
= pymotherless
.__version
_date
__;
28 __version_date_plusrc__
= pymotherless
.__version
_date
_plusrc
__
29 __version__
= pymotherless
.__version
__;
30 __version_date_plusrc__
= pymotherless
.__version
_date
_plusrc
__;
32 geturls_cj
= pymotherless
.geturls_cj
;
33 geturls_ua
= pymotherless
.geturls_ua
;
34 geturls_ua_firefox_windows7
= pymotherless
.geturls_ua_firefox_windows7
;
35 geturls_ua_seamonkey_windows7
= pymotherless
.geturls_ua_seamonkey_windows7
;
36 geturls_ua_chrome_windows7
= pymotherless
.geturls_ua_chrome_windows7
;
37 geturls_ua_chromium_windows7
= pymotherless
.geturls_ua_chromium_windows7
;
38 geturls_ua_internet_explorer_windows7
= pymotherless
.geturls_ua_internet_explorer_windows7
;
39 geturls_ua_pymotherless_python
= pymotherless
.geturls_ua_pymotherless_python
;
40 geturls_ua_pymotherless_python_alt
= pymotherless
.geturls_ua_pymotherless_python_alt
;
41 geturls_ua_googlebot_google
= pymotherless
.geturls_ua_googlebot_google
;
42 geturls_ua_googlebot_google_old
= pymotherless
.geturls_ua_googlebot_google_old
;
43 geturls_headers
= pymotherless
.geturls_headers
;
44 geturls_headers_firefox_windows7
= pymotherless
.geturls_headers_firefox_windows7
;
45 geturls_headers_seamonkey_windows7
= pymotherless
.geturls_headers_seamonkey_windows7
;
46 geturls_headers_chrome_windows7
= pymotherless
.geturls_headers_chrome_windows7
;
47 geturls_headers_chromium_windows7
= pymotherless
.geturls_headers_chromium_windows7
;
48 geturls_headers_internet_explorer_windows7
= pymotherless
.geturls_headers_internet_explorer_windows7
;
49 geturls_headers_pymotherless_python
= pymotherless
.geturls_headers_pymotherless_python
;
50 geturls_headers_pymotherless_python_alt
= pymotherless
.geturls_headers_pymotherless_python_alt
;
51 geturls_headers_googlebot_google
= pymotherless
.geturls_headers_googlebot_google
;
52 geturls_headers_googlebot_google_old
= pymotherless
.geturls_headers_googlebot_google_old
;
53 geturls_download_sleep
= pymotherless
.geturls_download_sleep
;
55 parser
= argparse
.ArgumentParser(description
="get urls of images/videos from motherless.com", conflict_handler
="resolve", add_help
=True);
56 parser
.add_argument('-v', '--version', action
='version', version
=__program_name__
+" "+__version__
);
57 getargs
= parser
.parse_args();
59 if(getargs
.verbose
==True):
60 log
.basicConfig(format
="%(levelname)s: %(message)s", level
=log
.DEBUG
);