Move CLI to own package
This commit is contained in:
parent
d23f364f71
commit
7a1226b232
12 changed files with 273 additions and 179 deletions
15
cli/grab_links.py
Normal file
15
cli/grab_links.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from rich import print
|
||||
|
||||
from app.scrapers.rss_link_database import scrape
|
||||
from cli.cli import app
|
||||
|
||||
|
||||
@app.command(
|
||||
name="grab_links",
|
||||
help="Grab RSS feeds from different sources.",
|
||||
)
|
||||
def grab_links() -> None:
|
||||
"""Grab RSS feeds from different sources."""
|
||||
print("Grabbing links...")
|
||||
rss_links: str = scrape()
|
||||
print(rss_links)
|
||||
Loading…
Add table
Add a link
Reference in a new issue