Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argparse to deal with things like -v/--verbose flag would be very useful #2

Open
julianorchard opened this issue Feb 3, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@julianorchard
Copy link
Owner

At the moment, this script doesn't have much support to tell the user what's going on, aside from random print("") comments.

It would be good to have args like -v that can be passed to explain what's going on if running it normally from the shell.

Could also be run without a configuration file in this way:

python3 rss-ntfy/rss-ntfy.py --ntfy "https://ntfy.sh/" --service "nitter" --feed "https://uk.unofficialbird.com/{username}/rss" --descriptor "🐦 Tweet"

This would require quite a few additions to the script to get it to work, including better handling of incomplete entries, etc. Minimum required for an entry would be:

  • Name (the topic for the ntfy instance to use)
  • Feed (would definitely be required to do the scraping)

Then the following could be autopopulated along these lines:

  • Descriptor (could just default to "☁ Notification from" if no descriptor input found)
  • Instance (could default to ntfy.sh, but if this is the path to go down, I think it's a good idea to add some randomness to the feed name, so that there's not a problem with the name being so common that multiple people end up using it)
  • Verbose (off by default, not even a feature, currently)

This might be worth breaking up into a few seperate issues, depending on how quickly I'm able to solve these problems. It's more of a project really, but I want to quickly document my thought process.

@julianorchard julianorchard added the enhancement New feature or request label Feb 3, 2023
@julianorchard julianorchard self-assigned this Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant