judell / h_notify

hypothesis notification prototype
MIT License
42 stars 8 forks source link

Is RSS from wildcard URL supported? #1

Open solarchemist opened 5 years ago

solarchemist commented 5 years ago

Do you support getting RSS from a wildcard URL (domain), i.e., something like this?

notify_rss_url_activity(url='https://theatlantic.com/*', token=default_token, pickle='akVkkdfu')

When I tried the above I got NameError: name 'notify_rss_url_activity' is not defined. I was able to run the RSS recipe in examples.py without errors.

On a fresh Ubuntu 18.04 VM, I had to install the following pip packages first:

sudo apt install python3-pip
pip3 install feedgen markdown python-dateutil pytz wheel 
judell commented 5 years ago

No, thanks for pointing this out, the RSS pattern was never fully fleshed out and currently only supports the group facet. I'll aim to generalize that.

solarchemist commented 5 years ago

For any future reader who is just looking for a way to get RSS output from the Hypothesis Stream for a wildcard URL, this is actually already supported (as pointed out to me by @judell in an email thread):
https://hypothes.is/stream.atom?wildcard_uri=https://elifesciences.org/*

Hypothes.is has a guide on how to use domain-level search here, and another on RSS/Atom feeds here. As evidenced by the RSS feed above, it seems the functionalities can also be combined.

judell commented 5 years ago

it seems the functionalities can also be combined.

Yes. The caveat: no way to authenticate to an Atom/RSS feed, so the feed works for annotations and replies in the Public layer but not in private groups. The RSS solution here is mainly for that purpose.

On Mon, Jul 1, 2019 at 3:49 PM Taha Ahmed notifications@github.com wrote:

For any future reader who is just looking for a way to get RSS output from the Hypothesis Stream for a wildcard URL, this is actually already supported (as pointed out to me by @judell https://github.com/judell in an email thread): https://hypothes.is/stream.atom?wildcard_uri=https://elifesciences.org/*

Hypothes.is has a guide on how to use domain-level search here https://web.hypothes.is/help/how-to-use-domain-level-search/, and another on RSS/Atom feeds here https://web.hypothes.is/help/atom-rss-feeds-for-annotations/. As evidenced by the RSS feed above, it seems the functionalities can also be combined.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/judell/h_notify/issues/1?email_source=notifications&email_token=AAALLLMUOQFMWDF7YFCL24LP5KCZHA5CNFSM4H4NWDJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY7R42A#issuecomment-507453032, or mute the thread https://github.com/notifications/unsubscribe-auth/AAALLLPPRX7H5V5CAEFSED3P5KCZHANCNFSM4H4NWDJA .