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

Add reporter: Prowl App #633

Merged
merged 10 commits into from Apr 9, 2021
Merged

Add reporter: Prowl App #633

merged 10 commits into from Apr 9, 2021

Conversation

nitz
Copy link
Contributor

@nitz nitz commented Apr 4, 2021

Prowl is a web-based push notification platform not unlike Pushover or Pushbullet.

I added it as it's the one I personally use, and thought perhaps someone else out there might get use from it too.

nitz added 2 commits April 3, 2021 21:46
Prowl is a simple iOS push notification service that grew out of the desire to forward MacOS 'Growl' notifications to iOS. It has a simple web API that can be used to create arbitrary push notifications to be sent to a user's device.
CHANGELOG.md Outdated Show resolved Hide resolved
lib/urlwatch/reporters.py Outdated Show resolved Hide resolved
lib/urlwatch/reporters.py Outdated Show resolved Hide resolved
lib/urlwatch/reporters.py Outdated Show resolved Hide resolved
Copy link
Owner

@thp thp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments.

Eloy Paris and others added 6 commits April 5, 2021 08:57
When building a command argument list for subprocess.Popen(), add
options that require an argument as separate list elements. This results
in a list like this:

2021-02-05 12:33:37,880 html2txt DEBUG: Command: ['html2text', '-nobs', '-utf8', '-width', '132'], stdout encoding: utf-8

instead of:

2021-02-05 12:33:37,880 html2txt DEBUG: Command: ['html2text', '-nobs', '-utf8', '-width 132'], stdout encoding: utf-8

which produces a CLI options parsing error because there is no option
called '-width 132'.
@nitz
Copy link
Contributor Author

nitz commented Apr 5, 2021

Fantastic feedback! (also I'm a bit new to Python, is there an easy way to run a PEP-8 (and other PEP) checkers locally?)

Okay! All those changes made, except the UTF-8 one, as I just wanted to confirm with you before I did: What I read in the requests docs, it says it converts all the keys to UTF-8, and that values should avoid passing unicode, which makes it seem possible? The prowl api does does specify UTF-8. The requests docs also mentions that all values should be strings, so should I be stringifying api_key and priority too?

What do you think? Or I guess rather: what would you prefer :)

Thanks for the feedback and super expedant review!

@nitz nitz requested a review from thp April 6, 2021 13:24
@thp thp merged commit 1659be2 into thp:master Apr 9, 2021
@thp
Copy link
Owner

thp commented Apr 9, 2021

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants