add function
This commit is contained in:
parent
5a5658d955
commit
a39e2200bd
@ -2,11 +2,23 @@
|
|||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
from getpass import getpass
|
from getpass import getpass
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
import argparse, logging
|
import argparse, logging, threading
|
||||||
|
|
||||||
from lib.WPImport import WPimport
|
from lib.WPImport import WPimport
|
||||||
from lib.WPExport import WPExport
|
from lib.WPExport import WPExport
|
||||||
|
|
||||||
|
|
||||||
|
def download(exportWp, html, img):
|
||||||
|
webpage = exportWp.getUrlPage()
|
||||||
|
if html is False:
|
||||||
|
exportWp.downloadHTML(webpage)
|
||||||
|
|
||||||
|
if args.img is False:
|
||||||
|
exportWp.downloadImg(webpage)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--debug", help="Verbosity", action="store_true")
|
parser.add_argument("--debug", help="Verbosity", action="store_true")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user