I am working am trying to add geocoded Wiki data to a google map.
When I used a PHP class (class_WikiRetriever.php) to do this - all I get is the full page dumped. ie everything on the wikipage is parsed.
1. What methods are used to extract specific elements of an article. Say the intro.?
2. How can only articles which have already been geotagged be selected?
Many thanks
Magnus
Momedia schreef:
I am working am trying to add geocoded Wiki data to a google map.
When I used a PHP class (class_WikiRetriever.php) to do this - all I get is the full page dumped. ie everything on the wikipage is parsed.
- What methods are used to extract specific elements of an article. Say the intro.?
For getting the intro, use prop=revisions&rvprop=content&rvsection=0
- How can only articles which have already been geotagged be selected?
That depends on how geotagging is done. If it's done using a template, you can get a list of all pages using that template with list=embeddedin&eititle=Template:Whatever
Roan Kattouw (Catrope)
Roan Kattouw (Catrope)
Many thanks.
Whats the suggested way to extract information once we have our title or pageID's?
Magnus
----- Original Message ----- From: "Roan Kattouw" roan.kattouw@home.nl To: "MediaWiki API announcements & discussion" mediawiki-api@lists.wikimedia.org Sent: Thursday, January 29, 2009 6:33 AM Subject: Re: [Mediawiki-api] Parsing info
Momedia schreef:
I am working am trying to add geocoded Wiki data to a google map.
When I used a PHP class (class_WikiRetriever.php) to do this - all I get is the full page dumped. ie everything on the wikipage is parsed.
- What methods are used to extract specific elements of an article. Say
the intro.?
For getting the intro, use prop=revisions&rvprop=content&rvsection=0
- How can only articles which have already been geotagged be selected?
That depends on how geotagging is done. If it's done using a template, you can get a list of all pages using that template with list=embeddedin&eititle=Template:Whatever
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org