Yet another small update.
[PyMotherless.git] / pymotherless-demo.py
blobad45e05c7d46b9f105c094aa1915e7c37da7f961
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: 02/05/2016 Ver. 0.3.6 RC 3 - Author: cooldude2k $
17 '''
19 from __future__ import division, absolute_import, print_function;
20 import re, os, sys, pymotherless, argparse;
22 __program_name__ = pymotherless.__program_name__;
23 __version_info__ = pymotherless.__version_info__;
24 __version_date_info__ = pymotherless.__version_date_info__;
25 __version_date__ = pymotherless.__version_date__;
26 __version_date_plusrc__ = pymotherless.__version_date_plusrc__
27 __version__ = pymotherless.__version__;
28 __version_date_plusrc__ = pymotherless.__version_date_plusrc__;
30 geturls_cj = pymotherless.geturls_cj;
31 geturls_ua = pymotherless.geturls_ua;
32 geturls_ua_firefox_windows7 = pymotherless.geturls_ua_firefox_windows7;
33 geturls_ua_chrome_windows7 = pymotherless.geturls_ua_chrome_windows7;
34 geturls_ua_internet_explorer_windows7 = pymotherless.geturls_ua_internet_explorer_windows7;
35 geturls_headers_list = pymotherless.geturls_headers_list;
36 geturls_headers_dict = pymotherless.geturls_headers_dict;
37 geturls_headers = pymotherless.geturls_headers;
38 geturls_download_sleep = pymotherless.geturls_download_sleep;
40 parser = argparse.ArgumentParser(description="get urls of images/videos from motherless.com", conflict_handler="resolve", add_help=True);
41 parser.add_argument('-v', '--version', action='version', version=__program_name__+" "+__version__);
42 getargs = parser.parse_args();