hi, i'm new in this mailinglist;
i want to write a php-bot for the german wikipedia; i don't think it's possible the get direct access to the databases, not only for reading;
so my question is: what is the most direct access for: * reading the source of a acticle * writing/uploading a edited source * knowing of a artice is a redirect, kategorie or something else
if there is no other possibility i can also access the the editing- pages in wikipedia and extract the source of a page from there, but i hope there is also an other way!
please let me know, thanks, johannes
Am 10.12.2005 um 20:07 schrieb Johannes Feigl:
i don't think it's possible the get direct access to the databases, not only for reading;
I bet it is impossible.
so my question is: what is the most direct access for:
- reading the source of a acticle
- writing/uploading a edited source
- knowing of a artice is a redirect, kategorie or something else
if there is no other possibility i can also access the the editing- pages in wikipedia and extract the source of a page from there, but i hope there is also an other way!
There's pywikipediabot which should be able to do anything you want. no need to write something new
ciao, tom
-- http://www.tomk32.de - just a geek trying to change the world http://de.wikipedia.org/wiki/Benutzer:TomK32 http://verlag.tomk32.de/c/wrdigest
so my question is: what is the most direct access for:
- reading the source of a acticle
- writing/uploading a edited source
- knowing of a artice is a redirect, kategorie or something else
if there is no other possibility i can also access the the editing- pages in wikipedia and extract the source of a page from there, but i hope there is also an other way!
There's pywikipediabot which should be able to do anything you want. no need to write something new
yes i know, but i cannot speak python (yet) ;) and i what to write the bot in php, i know php well... does anyone know here how does pywikipediabot accesses to the source code?
mfg johannes
On 12/10/05, Johannes Feigl johannes.feigl@aon.at wrote:
so my question is: what is the most direct access for:
- reading the source of a acticle
- writing/uploading a edited source
- knowing of a artice is a redirect, kategorie or something else
if there is no other possibility i can also access the the editing- pages in wikipedia and extract the source of a page from there, but i hope there is also an other way!
There's pywikipediabot which should be able to do anything you want. no need to write something new
yes i know, but i cannot speak python (yet) ;) and i what to write the bot in php, i know php well... does anyone know here how does pywikipediabot accesses to the source code?
There is no API, it's just as a browser would, through HTTP.
Dori
Hi *Johannes Feigl, *You might want to take a look at the phpwikibot project on SourceForget. [1]
Best regards, [1] http://sourceforge.net/projects/phpwikibot -- Edit this page @ http://pt.wikipedia.org
hi,
yes i know, i've also already downloaded it, but i cannot find informations about HOW i works ;(
mfg johannes
----- Original Message ----- From: "Sérgio Ribeiro" sr.ribeiro@gmail.com To: "MediaWiki announcements and site admin list" mediawiki-l@wikimedia.org Sent: Saturday, December 10, 2005 9:39 PM Subject: Re: [Mediawiki-l] writing a bot ... directest access to articles
Hi *Johannes Feigl, *You might want to take a look at the phpwikibot project on SourceForget. [1]
Best regards, [1] http://sourceforge.net/projects/phpwikibot -- Edit this page @ http://pt.wikipedia.org _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Am 11.12.2005 um 12:59 schrieb Johannes Feigl:
yes i know, i've also already downloaded it, but i cannot find informations about HOW i works ;(
You took the CVS version? There's a CONTENTS file which explains the single files, just look into a few simple scripts to find out how to write your own script.
ciao, tom
-- http://www.tomk32.de - just a geek trying to change the world http://de.wikipedia.org/wiki/Benutzer:TomK32 http://verlag.tomk32.de/c/wrdigest
The documentation is rather poor, but the headers of each script file contain comments which might be useful - that's how I learned to use some of them, anyway.
Rob Church
On 11/12/05, Johannes Feigl johannes.feigl@aon.at wrote:
hi,
yes i know, i've also already downloaded it, but i cannot find informations about HOW i works ;(
mfg johannes
----- Original Message ----- From: "Sérgio Ribeiro" sr.ribeiro@gmail.com To: "MediaWiki announcements and site admin list" mediawiki-l@wikimedia.org Sent: Saturday, December 10, 2005 9:39 PM Subject: Re: [Mediawiki-l] writing a bot ... directest access to articles
Hi *Johannes Feigl, *You might want to take a look at the phpwikibot project on SourceForget. [1]
Best regards, [1] http://sourceforge.net/projects/phpwikibot -- Edit this page @ http://pt.wikipedia.org _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
yes i know, but i cannot speak python (yet) ;) and i what to write the bot in php, i know php well... does anyone know here how does pywikipediabot accesses to the source code?
There is no API, it's just as a browser would, through HTTP.
ok, thanks dori, then i will also access to via normal http. but the problem is, that there is a transfer of a lot of data, which are not necessary, i think of the when you open a site with the source-code, (e.g. http://de.wikipedia.org/w/index.php?title=Berkshire_Hathaway&action=edit ) you need only the source-text for the bot. it's only the part in the textarea
i think it would be nice of you add to the index.php also the action "source". like: "index.php?title=Wikipedia&action=edit", and you only get the sourcecode of the article "Wikipedia"
what do you think about?
mfg johannes
mediawiki-l@lists.wikimedia.org