Dear List Members,
Is there a list of the protected pages of the English wikipedia ? I would like to extract the following information:
<page ID> <protection status> <page ID> <protection status> <page ID> <protection status> ...
Thanks.
Try http://en.wikipedia.org/wiki/Special:ProtectedPages.
Cheers! Siebrand
-----Oorspronkelijk bericht----- Van: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] Namens Farkas, Illes Verzonden: donderdag 2 oktober 2008 15:48 Aan: wikitech-l@lists.wikimedia.org Onderwerp: [Wikitech-l] en wikipedia full list of protected pages
Dear List Members,
Is there a list of the protected pages of the English wikipedia ? I would like to extract the following information:
<page ID> <protection status> <page ID> <protection status> <page ID> <protection status> ...
Thanks. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Farkas, Illes wrote:
Dear List Members,
Is there a list of the protected pages of the English wikipedia ? I would like to extract the following information:
<page ID> <protection status> <page ID> <protection status> <page ID> <protection status> ...
Thanks.
You can get it from http://download.wikimedia.org/enwiki/20080724/enwiki-20080724-page_restricti...
(not too updated, but RobH was going to install the new servers today, so new dumps *should* start shortly)
On Thu, Oct 2, 2008 at 9:59 AM, Platonides Platonides@gmail.com wrote:
You can get it from http://download.wikimedia.org/enwiki/20080724/enwiki-20080724-page_restricti...
(not too updated, but RobH was going to install the new servers today, so new dumps *should* start shortly)
That doesn't include the old protections yet, does it? Last I heard, nobody had migrated all the old ones to the new table.
The API should be able to provide this info somehow, I expect.
Oldies still need to be migrated :)
-Aaron Schulz
Date: Thu, 2 Oct 2008 19:34:31 -0400 From: Simetrical+wikilist@gmail.com To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] en wikipedia full list of protected pages
On Thu, Oct 2, 2008 at 9:59 AM, Platonides Platonides@gmail.com wrote:
You can get it from http://download.wikimedia.org/enwiki/20080724/enwiki-20080724-page_restricti...
(not too updated, but RobH was going to install the new servers today, so new dumps *should* start shortly)
That doesn't include the old protections yet, does it? Last I heard, nobody had migrated all the old ones to the new table.
The API should be able to provide this info somehow, I expect.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!55...
As of a few minutes ago: http://tools.wikimedia.de/~autocracy/restrictions.gz
May or may not included migrated. If somebody tells me how the old stuff is stored, I can look into that as well.
-Jeff
On Oct 2, 2008, at 7:38 PM, Aaron Schulz wrote:
Oldies still need to be migrated :)
-Aaron Schulz
Date: Thu, 2 Oct 2008 19:34:31 -0400 From: Simetrical+wikilist@gmail.com To: wikitech-l@lists.wikimedia.org Subject: Re: [Wikitech-l] en wikipedia full list of protected pages
On Thu, Oct 2, 2008 at 9:59 AM, Platonides Platonides@gmail.com wrote:
You can get it from http://download.wikimedia.org/enwiki/20080724/enwiki-20080724-page_restricti...
(not too updated, but RobH was going to install the new servers today, so new dumps *should* start shortly)
That doesn't include the old protections yet, does it? Last I heard, nobody had migrated all the old ones to the new table.
The API should be able to provide this info somehow, I expect.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!55... _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Aryeh Gregor schreef:
That doesn't include the old protections yet, does it? Last I heard, nobody had migrated all the old ones to the new table.
Those are in the page table, a dump of which you can also download.
The API should be able to provide this info somehow, I expect.
The API can currently tell if and how a given page is protected, but it doesn't provide a list of protected pages.
Roan Kattouw (Catrope)
"Roan Kattouw" roan.kattouw@home.nl wrote in message news:48E61CBF.4010408@home.nl...
The API can currently tell if and how a given page is protected, but it doesn't provide a list of protected pages.
I never expected to be giving *you* lessons on how to use the API, Roan, but...
http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprtyp...
will list pages that are edit-protected; if you use it as a generator, with prop=info&inprop=protection, you can get the specific type of protection; if you use apprtype=edit&apprlevel=sysop, you get only fully-protected pages. There's also apprtype=move for move-protected pages, and so on.
Russ
Russell Blau schreef:
I never expected to be giving *you* lessons on how to use the API, Roan, but...
You'd be surprised how little I know about actually *using* the API, as I don't do that very often. Quite a few authors of API clients (which includes you, IIRC) are much more aware of obscure features like apprtype then I am.
http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprtyp...
will list pages that are edit-protected; if you use it as a generator, with prop=info&inprop=protection, you can get the specific type of protection; if you use apprtype=edit&apprlevel=sysop, you get only fully-protected pages. There's also apprtype=move for move-protected pages, and so on.
That'll work, but it still won't list pages with pre-1.10 protections, as it only queries the page_restrictions table. Also, you'd have to repeat this request for every possible value for apprtype (which can be more than just edit and move).
Roan Kattouw (Catrope)
On 04/10/2008, at 12:07 AM, Roan Kattouw roan.kattouw@home.nl wrote:
That'll work, but it still won't list pages with pre-1.10 protections, as it only queries the page_restrictions table. Also, you'd have to repeat this request for every possible value for apprtype (which can be more than just edit and move).
FYI, toolserver tells me that of 28k protected pages, 8k still use pre-1.10 schema.
On Fri, Oct 3, 2008 at 10:28 AM, Andrew Garrett andrew@epstone.net wrote:
FYI, toolserver tells me that of 28k protected pages, 8k still use pre-1.10 schema.
Would it really be so hard to just run the blasted migration script? It's not like it would cause downtime or significant lag, I assume?
Is there a migration script (that handles moving these to the table)? After a very quick look, I could handily write one.
http://tools.wikimedia.de/~autocracy/restrictions.gz http://tools.wikimedia.de/~autocracy/old_restrictions.gz
And now you have them all :)
On Oct 3, 2008, at 12:58 PM, Aryeh Gregor wrote:
On Fri, Oct 3, 2008 at 10:28 AM, Andrew Garrett andrew@epstone.net wrote:
FYI, toolserver tells me that of 28k protected pages, 8k still use pre-1.10 schema.
Would it really be so hard to just run the blasted migration script? It's not like it would cause downtime or significant lag, I assume?
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Fri, Oct 3, 2008 at 2:08 PM, Jeff Ferland jeff@storyinmemo.com wrote:
Is there a migration script (that handles moving these to the table)? After a very quick look, I could handily write one.
Yes, maintenance/updateRestrictions.php. It was first written in April 2007 and has, apparently, never been run on Wikimedia sites.
On Fri, Oct 3, 2008 at 8:17 PM, Aryeh Gregor Simetrical+wikilist@gmail.com wrote:
On Fri, Oct 3, 2008 at 2:08 PM, Jeff Ferland jeff@storyinmemo.com wrote:
Is there a migration script (that handles moving these to the table)? After a very quick look, I could handily write one.
Yes, maintenance/updateRestrictions.php. It was first written in April 2007 and has, apparently, never been run on Wikimedia sites.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bryan Tong Minh wrote:
On Fri, Oct 3, 2008 at 8:17 PM, Aryeh Gregor Simetrical+wikilist@gmail.com wrote:
On Fri, Oct 3, 2008 at 2:08 PM, Jeff Ferland jeff@storyinmemo.com wrote:
Is there a migration script (that handles moving these to the table)? After a very quick look, I could handily write one.
Yes, maintenance/updateRestrictions.php. It was first written in April 2007 and has, apparently, never been run on Wikimedia sites.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Running in progress now. One of those little things we never got to. :P
- -- brion
wikitech-l@lists.wikimedia.org