Create .gitattributes
[PyMotherless.git] / pymotherless-demo.py
blob04f9862d5332e4aaddc7fe0ae1b78e9e8bcbdd8e
1 #!/usr/bin/env python
3 '''
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 $
17 '''
19 from __future__ import division, absolute_import, print_function;
20 import re, os, sys, pymotherless, argparse;
21 import logging as log;
23 __project__ = pymotherless.__project__;
24 __program_name__ = pymotherless.__program_name__;
25 __project_url__ = pymotherless.__project_url__;
26 __version_info__ = pymotherless.__version_info__;
27 __version_date_info__ = pymotherless.__version_date_info__;
28 __version_date__ = pymotherless.__version_date__;
29 __version_date_plusrc__ = pymotherless.__version_date_plusrc__
30 __version__ = pymotherless.__version__;
31 __version_date_plusrc__ = pymotherless.__version_date_plusrc__;
33 geturls_cj = pymotherless.geturls_cj;
34 geturls_ua = pymotherless.geturls_ua;
35 geturls_ua_firefox_windows7 = pymotherless.geturls_ua_firefox_windows7;
36 geturls_ua_seamonkey_windows7 = pymotherless.geturls_ua_seamonkey_windows7;
37 geturls_ua_chrome_windows7 = pymotherless.geturls_ua_chrome_windows7;
38 geturls_ua_chromium_windows7 = pymotherless.geturls_ua_chromium_windows7;
39 geturls_ua_palemoon_windows7 = pymotherless.geturls_ua_palemoon_windows7;
40 geturls_ua_opera_windows7 = pymotherless.geturls_ua_opera_windows7;
41 geturls_ua_vivaldi_windows7 = pymotherless.geturls_ua_chromium_windows7;
42 geturls_ua_internet_explorer_windows7 = pymotherless.geturls_ua_internet_explorer_windows7;
43 geturls_ua_microsoft_edge_windows7 = pymotherless.geturls_ua_microsoft_edge_windows7;
44 geturls_ua_pymotherless_python = pymotherless.geturls_ua_pymotherless_python;
45 geturls_ua_pymotherless_python_alt = pymotherless.geturls_ua_pymotherless_python_alt;
46 geturls_ua_googlebot_google = pymotherless.geturls_ua_googlebot_google;
47 geturls_ua_googlebot_google_old = pymotherless.geturls_ua_googlebot_google_old;
48 geturls_headers = pymotherless.geturls_headers;
49 geturls_headers_firefox_windows7 = pymotherless.geturls_headers_firefox_windows7;
50 geturls_headers_seamonkey_windows7 = pymotherless.geturls_headers_seamonkey_windows7;
51 geturls_headers_chrome_windows7 = pymotherless.geturls_headers_chrome_windows7;
52 geturls_headers_chromium_windows7 = pymotherless.geturls_headers_chromium_windows7;
53 geturls_headers_palemoon_windows7 = pymotherless.geturls_headers_palemoon_windows7;
54 geturls_headers_opera_windows7 = pymotherless.geturls_headers_opera_windows7;
55 geturls_headers_vivaldi_windows7 = pymotherless.geturls_headers_vivaldi_windows7;
56 geturls_headers_internet_explorer_windows7 = pymotherless.geturls_headers_internet_explorer_windows7;
57 geturls_headers_microsoft_edge_windows7 = pymotherless.geturls_headers_microsoft_edge_windows7;
58 geturls_headers_pymotherless_python = pymotherless.geturls_headers_pymotherless_python;
59 geturls_headers_pymotherless_python_alt = pymotherless.geturls_headers_pymotherless_python_alt;
60 geturls_headers_googlebot_google = pymotherless.geturls_headers_googlebot_google;
61 geturls_headers_googlebot_google_old = pymotherless.geturls_headers_googlebot_google_old;
62 geturls_download_sleep = pymotherless.geturls_download_sleep;
64 parser = argparse.ArgumentParser(description="get urls of images/videos from motherless.com", conflict_handler="resolve", add_help=True);
65 parser.add_argument('-v', '--version', action='version', version=__program_name__+" "+__version__);
66 parser.add_argument("-V", "--verbose", action = "store_true", help = "print various debugging information");
67 getargs = parser.parse_args();
69 if(getargs.verbose==True):
70 log.basicConfig(format="%(levelname)s: %(message)s", level=log.DEBUG);