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: 1/30/2019 Ver. 0.4.7 RC 4 - Author: cooldude2k $
19 from __future__
import absolute_import
, division
, print_function
, unicode_literals
, generators
, with_statement
, nested_scopes
27 __project__
= pymotherless
.__project
__
28 __program_name__
= pymotherless
.__program
_name
__
29 __project_url__
= pymotherless
.__project
_url
__
30 __version_info__
= pymotherless
.__version
_info
__
31 __version_date_info__
= pymotherless
.__version
_date
_info
__
32 __version_date__
= pymotherless
.__version
_date
__
33 __version_date_plusrc__
= pymotherless
.__version
_date
_plusrc
__
34 __version__
= pymotherless
.__version
__
35 __version_date_plusrc__
= pymotherless
.__version
_date
_plusrc
__
37 geturls_cj
= pymotherless
.geturls_cj
38 geturls_ua
= pymotherless
.geturls_ua
39 geturls_ua_firefox_windows7
= pymotherless
.geturls_ua_firefox_windows7
40 geturls_ua_seamonkey_windows7
= pymotherless
.geturls_ua_seamonkey_windows7
41 geturls_ua_chrome_windows7
= pymotherless
.geturls_ua_chrome_windows7
42 geturls_ua_chromium_windows7
= pymotherless
.geturls_ua_chromium_windows7
43 geturls_ua_palemoon_windows7
= pymotherless
.geturls_ua_palemoon_windows7
44 geturls_ua_opera_windows7
= pymotherless
.geturls_ua_opera_windows7
45 geturls_ua_vivaldi_windows7
= pymotherless
.geturls_ua_chromium_windows7
46 geturls_ua_internet_explorer_windows7
= pymotherless
.geturls_ua_internet_explorer_windows7
47 geturls_ua_microsoft_edge_windows7
= pymotherless
.geturls_ua_microsoft_edge_windows7
48 geturls_ua_pymotherless_python
= pymotherless
.geturls_ua_pymotherless_python
49 geturls_ua_pymotherless_python_alt
= pymotherless
.geturls_ua_pymotherless_python_alt
50 geturls_ua_googlebot_google
= pymotherless
.geturls_ua_googlebot_google
51 geturls_ua_googlebot_google_old
= pymotherless
.geturls_ua_googlebot_google_old
52 geturls_headers
= pymotherless
.geturls_headers
53 geturls_headers_firefox_windows7
= pymotherless
.geturls_headers_firefox_windows7
54 geturls_headers_seamonkey_windows7
= pymotherless
.geturls_headers_seamonkey_windows7
55 geturls_headers_chrome_windows7
= pymotherless
.geturls_headers_chrome_windows7
56 geturls_headers_chromium_windows7
= pymotherless
.geturls_headers_chromium_windows7
57 geturls_headers_palemoon_windows7
= pymotherless
.geturls_headers_palemoon_windows7
58 geturls_headers_opera_windows7
= pymotherless
.geturls_headers_opera_windows7
59 geturls_headers_vivaldi_windows7
= pymotherless
.geturls_headers_vivaldi_windows7
60 geturls_headers_internet_explorer_windows7
= pymotherless
.geturls_headers_internet_explorer_windows7
61 geturls_headers_microsoft_edge_windows7
= pymotherless
.geturls_headers_microsoft_edge_windows7
62 geturls_headers_pymotherless_python
= pymotherless
.geturls_headers_pymotherless_python
63 geturls_headers_pymotherless_python_alt
= pymotherless
.geturls_headers_pymotherless_python_alt
64 geturls_headers_googlebot_google
= pymotherless
.geturls_headers_googlebot_google
65 geturls_headers_googlebot_google_old
= pymotherless
.geturls_headers_googlebot_google_old
66 geturls_download_sleep
= pymotherless
.geturls_download_sleep
68 parser
= argparse
.ArgumentParser(
69 description
="get urls of images/videos from motherless.com", conflict_handler
="resolve", add_help
=True)
70 parser
.add_argument('-v', '--version', action
='version',
71 version
=__program_name__
+" "+__version__
)
72 parser
.add_argument("-V", "--verbose", action
="store_true",
73 help="print various debugging information")
74 getargs
= parser
.parse_args()
76 if(getargs
.verbose
== True):
77 log
.basicConfig(format
="%(levelname)s: %(message)s", level
=log
.DEBUG
)