Commons:Bots/Requests/Bot5958

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Bot5958 (talk · contribs)

Operator: Hans5958 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Adding missing Law of the Republic of Indonesia (Undang-Undang Republik Indonesia) documents (1537 PDF files) from the official source (public domain), and updating description of existing documents. Other law texts will follow on later requests. Also wanted to create the subcategories by year.

Automatic or manually assisted: Automatic with supervision

Edit type (e.g. Continuous, daily, one time run): One-time run

Maximum edit rate (e.g. edits per minute): As fast as how long uploading to Commons, with maximum of 1 every 5 seconds.

Bot flag requested: (Y/N): Yes (probably)

Programming language(s): Node.js and Python/Pywikibot (source code)

Hans5958 (talk) 07:44, 11 August 2022 (UTC)[reply]

Discussion

Addendum: Here's the related discussion about the work in general. Hans5958 (talk) 09:55, 11 August 2022 (UTC)[reply]

Addendum: I have uploaded the source code here. Hans5958 (talk) 17:05, 11 August 2022 (UTC)[reply]

Please make test run for each task. --EugeneZelenko (talk) 14:06, 11 August 2022 (UTC)[reply]

@EugeneZelenko
It turns out that I can't upload anything through the bot account, it says "WARNING: API error cantcreate: You do not have permission to create new pages.". This means I can't upload files and create categories. Do you have any solutions to this?
I would do the the description/info updater tommorow, as I still need to prepare about it. Hans5958 (talk) 17:03, 11 August 2022 (UTC)[reply]
 On hold I guess this is because I logged the account on Commons quite early, and I have to wait for the autoconfirmed role. Expect the tests to be run on 15 August. Sorry for the wait. Hans5958 (talk) 06:56, 12 August 2022 (UTC)[reply]
✓ Done. Bot is confirmed user now. --EugeneZelenko (talk) 14:17, 12 August 2022 (UTC)[reply]
Didn't expect you could override that. Thanks for the help on that one. Hans5958 (talk) 02:20, 13 August 2022 (UTC)[reply]
On that note, I have the simulation that contains the files to be uploaded. (now 1502 files) Hans5958 (talk) 10:45, 12 August 2022 (UTC)[reply]
✓ Done for file information updater (6 edits) Hans5958 (talk) 06:07, 12 August 2022 (UTC)[reply]
Please put each translation in own line or consider to use template based on Wikidata. Will be good idea to reflect actual changes in edit summaries instead of generic text. --EugeneZelenko (talk) 14:17, 12 August 2022 (UTC)[reply]
✓ Done (3 edits with "TEST 2") I'm not sure how the Wikidata template works, so I have opted to separate them to their own newline. Edit summaries should be improved now. Hans5958 (talk) 17:00, 12 August 2022 (UTC)[reply]
See {{Creator}} as example. Edit summaries look OK for me. --EugeneZelenko (talk) 15:05, 13 August 2022 (UTC)[reply]
I think I got {{Creator:Government of Indonesia}} working, would I need to do another test for this? Hans5958 (talk) 15:31, 13 August 2022 (UTC)[reply]
@EugeneZelenko Hans5958 (talk) 06:39, 14 August 2022 (UTC)[reply]
Yes, please. It'll be also good idea to replace Government of Indonesia text (all translations) with template. --EugeneZelenko (talk) 14:34, 14 August 2022 (UTC)[reply]
✓ Done for information updater (3 edits with summary [TEST 3] Task 1: Update Indonesia law text information).
✓ Done for uploading law texts (3 edits with summary ‎[TEST] Task 1: Add Indonesia law text).
@EugeneZelenko This is what I planned, and hopefully what you wish for. Hans5958 (talk) 15:37, 14 August 2022 (UTC)[reply]
Both looks OK for me. --EugeneZelenko (talk) 15:39, 14 August 2022 (UTC)[reply]
✓ Done for uploading law texts (3 edits with summary [TEST] Task 1: Add Indonesia law text). Hans5958 (talk) 02:20, 13 August 2022 (UTC)[reply]
✓ Done for subcategories per year (3 edits with summary [TEST] Task 1: Prepare Indonesia law categories by year). Hans5958 (talk) 03:07, 13 August 2022 (UTC)[reply]
Both look OK for me. --EugeneZelenko (talk) 15:05, 13 August 2022 (UTC)[reply]

If there are no objections, I think bot status should be granted. --EugeneZelenko (talk) 14:07, 21 August 2022 (UTC)[reply]