added cli

This commit is contained in:
Hazel Noack 2025-06-10 11:43:49 +02:00
parent 9c9768dbd9
commit c9efcce693
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,22 @@
import argparse
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()

View File