[Mediawiki-l] writing a bot ... directest access to articles
Johannes Feigl
johannes.feigl at aon.at
Sun Dec 11 12:07:20 UTC 2005
>> 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
More information about the MediaWiki-l
mailing list