listeria_rs icon indicating copy to clipboard operation
listeria_rs copied to clipboard

Correcting the en.wikiversity API submission

Open TS404 opened this issue 4 years ago • 5 comments

I've proposed listeriabot to be activated for en.wikiversity: Wikiversity:Colloquium#Listeriabot

I know very little about bots. Is only Magnus able to apply as bot owner for bot status per the post above? I'd love to get it activated on wikiversity as soon as possible to automate several manual lists (e.g. 1, 2, 3).

TS404 avatar Jan 08 '21 00:01 TS404

@magnusmanske I'm happy to learn how to set up and maintain this on WV if that reduces the work for you as a maintainer. I'm keen to get it up and running asap - I just need to be given a crash course in getting it started.

TS404 avatar Jan 30 '21 08:01 TS404

Could I check if there's any documentation/readme that I've missed on setting this up on a new wiki? I can find documentation on how to use it once it's already running, but noting on getting it activated yet.

TS404 avatar Feb 19 '21 03:02 TS404

Attempting to just submit to the API with links like the one below doesn't seem to work:

https://listeria.toolforge.org/index.php?action=update&lang=en&project=wikiversity&page=User:Evolution_and_evolvability/sandbox

It did seem to create an account through (https://en.wikiversity.org/w/index.php?title=Special:Log&logid=3253404)

Is there something server-side that's preventing it? Or maybe it's just the case that the bot account isn't registered on enwv?

TS404 avatar Feb 24 '21 02:02 TS404

The bot account should now be permitted on enwikiversity.

The test on meta works fine, but the test on enwv results in the following message:

Done.
Last line: OK: User:Evolution_and_evolvability/sandbox not edited

So something must be going wrong with save_wikitext_to_page. It needs to submit to en.wikiversity.org/w/api.php. Is the wikitext being sent to the api incorrect? Does it need a token?

TS404 avatar Feb 25 '21 04:02 TS404

I've also added a query at the Rust users forum to see if anyone there is able to help on this, since it's outside my coding abilities.

TS404 avatar Nov 02 '21 08:11 TS404