1
0
Fork 0

A little change of output.

master
Alexander Andreev 2 years ago
parent 22961611da
commit 4db2e1dc75
  1. 2
      Makefile
  2. 2
      scrapthechan/__init__.py
  3. 6
      scrapthechan/cli/scraper.py

@ -1,7 +1,7 @@
build: scrapthechan README.md setup.cfg
python setup.py sdist bdist_wheel
install:
python -m pip install --upgrade dist/scrapthechan-0.2.0-py3-none-any.whl --user
python -m pip install --upgrade dist/scrapthechan-0.2.1-py3-none-any.whl --user
uninstall:
# We change directory so pip uninstall will run, it'll fail otherwise.
@cd ~/

@ -1,5 +1,5 @@
__date__ = "18 Jule 2020"
__version__ = "0.2.0"
__version__ = "0.2.1"
__author__ = "Alexander \"Arav\" Andreev"
__email__ = "me@arav.top"
__copyright__ = f"Copyright (c) 2020 {__author__} <{__email__}>"

@ -85,13 +85,15 @@ def main() -> None:
print(f"Supported image boards are {', '.join(SUPPORTED_IMAGEBOARDS)}")
exit()
except ParserThreadNotFoundError:
print(f"Thread is no longer exist.")
print(f"Thread {args['site']}/{args['board']}/{args['thread']} " \
"is no longer exist.")
exit()
flen = len(parser.files)
print(f"There are {flen} files in this thread.")
print(f"There are {flen} files in " \
f"{args['site']}/{args['board']}/{args['thread']}.")
if not args["output-dir"] is None:
save_dir = args["output-dir"]

Loading…
Cancel
Save