Difference between revisions of "Sourcerer Implementation Notes"

From Geohashing
imported>Sourcerer
m (Downloads)
imported>Sourcerer
m (Downloads)
Line 12: Line 12:
 
=== Various Downloads ===
 
=== Various Downloads ===
  
{| cellpadding="2" border="1" cellspacing="0" width="100%"
+
'''Help Page'''
| '''What''' || '''How'''
+
: http://wiki.xkcd.com/wgh/api.php
|-
+
 
| Help Page
+
'''JSON Page Content Dump'''
| http://wiki.xkcd.com/wgh/api.php
+
: http://wiki.xkcd.com/wgh/api.php?format=json&action=query&titles=User:Sourcerer&prop=revisions&rvprop=content
|-
+
 
| JSON Page Content Dump
+
'''List first twenty Coordinates reached'''
| [http://wiki.xkcd.com/wgh/api.php?format=json&action=query&titles=User:Sourcerer&prop=revisions&rvprop=content http://wiki.xkcd.com/wgh/api.php?format=json&action=query&titles=User:Sourcerer&prop=revisions&rvprop=content]
+
: http://wiki.xkcd.com/wgh/api.php?action=query&list=categorymembers&cmtitle=Category:Coordinates_reached&cmlimit=20
|-
+
 
| List of Coordinates reached
+
'''List ten more Coordinates reached'''
|[http://wiki.xkcd.com/wgh/api.php?action=query&list=categorymembers&cmtitle=Category:Coordinates_reached http://wiki.xkcd.com/wgh/api.php?action=query&list=categorymembers&cmtitle=Category:Coordinates_reached] - seems to default to the first 10.
+
: http://wiki.xkcd.com/wgh/api.php?action=query&list=categorymembers&cmtitle=Category:Coordinates_reached&cmcontinue=page|323030382d30352d3234203139202d3939|27016&cmlimit=20
|}
 
  
 
[[Category:Implementations]]
 
[[Category:Implementations]]

Revision as of 13:56, 8 February 2015

Implementation Notes

My plan is to create some new analysis tools for this wiki. This page might help others to implement their tools.

  1. Get some page content ("Hello World!").
  2. Write some code (perhaps PHP command line code) to do the same. Make sure this does not overload the wiki.
  3. Download different kinds of page.
  4. Do some simple statistics on the downloaded data.
  5. Create reports in wiki markup.
  6. If it works, upload them to the wiki.

Various Downloads

Help Page

http://wiki.xkcd.com/wgh/api.php

JSON Page Content Dump

http://wiki.xkcd.com/wgh/api.php?format=json&action=query&titles=User:Sourcerer&prop=revisions&rvprop=content

List first twenty Coordinates reached

http://wiki.xkcd.com/wgh/api.php?action=query&list=categorymembers&cmtitle=Category:Coordinates_reached&cmlimit=20

List ten more Coordinates reached

http://wiki.xkcd.com/wgh/api.php?action=query&list=categorymembers&cmtitle=Category:Coordinates_reached&cmcontinue=page%7C323030382d30352d3234203139202d3939%7C27016&cmlimit=20