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

Follow a Wikipedia category #63

Closed
jarib opened this issue Jul 20, 2014 · 8 comments
Closed

Follow a Wikipedia category #63

jarib opened this issue Jul 20, 2014 · 8 comments

Comments

@jarib
Copy link
Contributor

jarib commented Jul 20, 2014

This probably requires calling out to the Wikimedia API (at least it doesn't seem to appear in IRC), but it would be cool to be able to follow all edits of articles in a given category, e.g. http://en.wikipedia.org/wiki/Category:Current_events.

@edsu
Copy link
Owner

edsu commented Jul 20, 2014

It's a good idea. Maybe I shouldn't be, but I'd be a bit worried about the number of API requests anon would have to do to keep up. See wikistream for a view into the churn.

An alternative would be to write a script like whitelist-congressedits.coffee that builds a whitelist, and writes it out, so that it could be incorporated into anon's config.json? The script could use the Wikipedia API to build a list of pages in a category and write out a config.json. If you wanted to run it rom cron we'd have to cook up some way for anon to re-read its configuration when it changes on disk.

@jarib
Copy link
Contributor Author

jarib commented Jul 20, 2014

Yeah, that sounds simpler.

Or perhaps anon could watch for changes to the category (which I think are also published on IRC) and refresh its whitelist automatically. That does increase the complexity a bit though.

@edsu
Copy link
Owner

edsu commented Jul 20, 2014

I don't think the category is part of what's published on IRC unfortunately. If it is this is definitely more doable.

Oh wait, you're right: changes to the category pages would show up. But what would that signify?

FWIW I've tried to keep anon small and relatively simple so it could serve as a model for writing other similar types of scripts that do other things. So if it makes sense to create a new little project that uses the same bits of functionality to do what you want definitely give it a shot.

@jarib
Copy link
Contributor Author

jarib commented Jul 20, 2014

I may have misunderstood, but I noticed this in the Norwegian feed:

https://twitter.com/wikistorting/status/489323619559153664

Den 20. juli 2014 kl. 19:43 skrev Ed Summers notifications@github.com:

I don't think the category is part of what's published on IRC unfortunately.


Reply to this email directly or view it on GitHub.

@edsu
Copy link
Owner

edsu commented Jul 20, 2014

No, you are right. If a category page is changed it will show up in irc updates. For a moment I thought you meant that article categories show up regularly for all changes.

@jarib
Copy link
Contributor Author

jarib commented Jul 20, 2014

Makes sense. I'm not sure how interesting the feed would be. There's a good chance it would be quite spammy with lots of innocuous edits.

At least the idea is out there if anyone wants to run with it.

@jarib jarib closed this as completed Jul 20, 2014
@n-eq
Copy link

n-eq commented May 18, 2020

Hi @jarib , did you manage to find a way to perform this ?

Thanks!

@jarib
Copy link
Contributor Author

jarib commented May 18, 2020

Never did explore it further, no.

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

No branches or pull requests

3 participants