generated from Hazel/python-project
added cli
This commit is contained in:
parent
9c9768dbd9
commit
c9efcce693
@ -1,3 +1,22 @@
|
|||||||
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
def cli():
|
def cli():
|
||||||
print(f"Running scribble_to_epub")
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Scribble_to_epub\n\nThis scrapes books from https://www.scribblehub.com/ and creates EPUB from them.",
|
||||||
|
formatter_class=argparse.RawTextHelpFormatter
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"url",
|
||||||
|
type=str,
|
||||||
|
help="URL of the ScribbleHub story to scrape and convert to EPUB"
|
||||||
|
)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
print(f"Running scribble_to_epub for URL: {args.url}")
|
||||||
|
# You would call your main scraping and EPUB creation logic here
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
cli()
|
||||||
|
0
scribble_to_epub/scribblehub.py
Normal file
0
scribble_to_epub/scribblehub.py
Normal file
Loading…
x
Reference in New Issue
Block a user