Bryan Tong Minh | 22 May 2007 12:45
Picon
Gravatar

Re: [OT] Python coding help needed

On 5/22/07, Siebrand Mazeland <s.mazeland <at> xs4all.nl> wrote:
> Flaws:
> *       Fails if CheckUsage is too busy. Delinking is not performed. This
> should be recognised and retries should be performed until a complete
> CheckUsage was obtained
I have implemented a version of CheckUsage in Python. This uses one
persistent MySQL connection to the databases, and one persistent HTTP
connection to en-wikipedia. Maybe using this instead of Duesentrieb's
is an option.

> *       TypeError: unsupported operand type(s) for -: 'unicode' and 'int'
Try converting the unicode object to an int using int().

> General wishes
> *       Simple web interface for database logs (last edits, last edits per
> language, all edits for a particular image)
I'm interested in this feature. What I basically need is read access
to the CommonsDelinker databases. I don't have very much time to
program, but as this is not a real critical feature and will probably
not be very much work, I am volunteering for this issue.

> *       Some kind of registration for the bots to enable starting it from
> cron if it is no longer running
See /home/bryan/xbtt/autorun.sh, this might be of some help.

Bryan

Gmane