Completed
Push — master ( 0fa017...ea2799 )
by John
01:12
created

droidscraper_main()   A

Complexity

Conditions 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
dl 0
loc 11
rs 9.4285
1
#!/usr/bin/env python3
2
"""Scrape Android autoloader webpage."""
3
4
import sys  # load arguments
5
from bbarchivist import decorators  # enter to exit
6
from bbarchivist import networkutils  # lookup
7
from bbarchivist import scriptutils  # default parser
8
9
__author__ = "Thurask"
10
__license__ = "WTFPL v2"
11
__copyright__ = "Copyright 2016 Thurask"
12
13
14
def droidscraper_main():
15
    """
16
    Wrap around :mod:`bbarchivist.networkutils` web scraping.
17
    """
18
    parser = scriptutils.default_parser("bb-droidscraper", "Autoloader scraper.")
19
    args = parser.parse_args(sys.argv[1:])
0 ignored issues
show
Unused Code introduced by
The variable args seems to be unused.
Loading history...
20
    parser.set_defaults()
21
    scriptutils.slim_preamble("DROIDSCRAPER")
22
    print(" ")
23
    networkutils.loader_page_scraper()
24
    decorators.enter_to_exit(True)
25
26
27
if __name__ == "__main__":
28
    droidscraper_main()
29