Move CLI to own package
This commit is contained in:
parent
d23f364f71
commit
7a1226b232
12 changed files with 273 additions and 179 deletions
|
|
@ -6,7 +6,7 @@ import orjson
|
|||
from click import echo
|
||||
|
||||
|
||||
def scrape():
|
||||
def scrape() -> str:
|
||||
"""Scrape.
|
||||
|
||||
Raises:
|
||||
|
|
@ -17,7 +17,7 @@ def scrape():
|
|||
msg = "RSS-Link-Database repository not found."
|
||||
raise FileNotFoundError(msg)
|
||||
|
||||
rss_links = []
|
||||
rss_links: list[str] = []
|
||||
for file in repository_path.glob("*.json"):
|
||||
echo(f"Scraping {file.name}...")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue