Python wiki editing help (mwclient)

Ankur Sinha sanjay.ankur at gmail.com
Sat Jun 23 12:08:21 UTC 2012


Hi folks, 

I'm trying to write a simple python script to generate agenda pages for
various team meetings. The initial version is here[1]. There's still
work to be done to make it more convenient to use, even more generic so
that all teams can use it. 

Now, using mwclient, I cannot add external links to the pages (such as
timeanddate.com links, or the {{fpchat|fedora-channel}} template link),
since it wants me to solve the captcha. Would anyone know if there's a
way of retrieving the captcha question and answering it using python so
that external links can be added? I wouldn't want to circumvent the
captcha, since it's there to prevent spamming (mostly via bots and
scripts :D), but I'd be glad if I could solve the captcha and post the
page with external links.

Most of this[2] wiki page is generated by the script. I've made changes
later.

It isn't a big deal: I can always add stuff a little malformed to get
around the captcha and then correct the page manually. I was just
wondering if it was possible to interact with the captcha.

[1]
https://gitorious.org/miscellaneous-sanjayankur31/miscellaneous-sanjayankur31/blobs/master/fedora-wiki-agenda-script/fedora-wiki-agenda.py

[2] https://fedoraproject.org/wiki/Meeting:APAC_Ambassadors_2012-07-07

-- 
Thanks, 
Warm regards,
Ankur: "FranciscoD"

Please only print if necessary. 

Looking to contribute to Fedora? Look here: https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/docs/attachments/20120623/b26d0a31/attachment.sig>


More information about the docs mailing list