Commons:Bots/Requests/BebiezazaBot

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

BebiezazaBot (talk · contribs)

Operator: Bebiezaza (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information) Can be contacted through Commons, Thai Wikisource, Thai Wikipedia, or English Wikipedia

Bot's tasks for which permission is being sought: Upload of documents from Royal Thai Government Gazette, which are works in public domain according to section 7 of the Copyright Act, BE 2537 (1994) of Thailand. (More information below)

Automatic or manually assisted: Automatic (semi-assisted through first uploads of its batch, to look out for any mistakes)

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

Maximum edit rate (e.g. edits per minute): 10 seconds between edits, on Wikimedia Commons and Thai Wikisource simultaeneously

When: The bot operates intermittently (in batches). Activity depends on the availability of file information provided to the bot, it can be started on demand by the local operator, on a stand alone pc

Bot flag requested: (Y/N): Y

Programming language(s): JavaScript (Node.js - mwn library)

The source code is available on GitHub.

Royal Thai Government Gazette is collection of legislations, regulations and notifications made by Royal Thai Cabinet Press. Its content, including text, tables, figures and emblems are deemed public domain according to section 7 of the Copyright Act, BE 2537 (1994) of Thailand. However, the use of some content (such as emblems) is strictly limited by several laws, including "Government Mark Act, 1939" (information from {{PD-TH-exempt}}'s documentation). Works already uploaded to Wikimedia Commons can be found at Category:Works published in the Royal Thai Government Gazette. Still, there are many more files to be uploaded for proofreading at Thai Wikisource. These are some example files which had been uploaded by users:

Bebiezaza (talk) 17:40, 9 January 2023 (UTC)[reply]

Discussion

Question: Although I have wrote this request for batches, do I still need to request a new task for each upload batches of Royal Thai Government Gazette works? --Bebiezaza (talk) 17:40, 9 January 2023 (UTC)[reply]

Please make test run. I think you'll need new request in case of significant changes to bot code that results in changes in file description/structured data. --EugeneZelenko (talk) 15:33, 11 January 2023 (UTC)[reply]
First test run, 30 files uploaded. Experienced random 403 Forbidden on some files so these uploads were not continuous. I was also changing edit summary for earlier files. Considering another test run tomorrow. --Bebiezaza (talk) 18:01, 11 January 2023 (UTC)[reply]
Another test run, 20 files uploaded. 403 Forbidden error has been accounted for in the code (immediate retry). Everything seems to be normal here now. --Bebiezaza (talk) 10:26, 12 January 2023 (UTC)[reply]
I would suggest to create dedicated category instead of adding Category:2014 books PDF files, Category:2014 books from Thailand, Category:Thai government PDF files, Category:PDF files in Thai to each file.
Is it possible to use Wikidata items for Author and Publisher?
EugeneZelenko (talk) 15:35, 12 January 2023 (UTC)[reply]
1. There is a dedicated category applied to every files in this batch named Category:Orders of the National Council for Peace and Order but the page has not been created as of yet. I find that it's a "tradition" to add 4 aforementioned categories to these types of files. Technically, files in this first batch are published in the span of 6 years so files toward the end of this batch will be placed into 2015/6/7/8/9 books ...... instead of 2014 categories.
2. For this batch, the Wikidata item for Author is d:Q16919521 (National Council for Peace and Order), and for Publisher is d:Q16305279 (Secretariat of the Cabinet (Thailand)). Though, I did not know where to place these Wikidata links on the page content.
Bebiezaza (talk) 17:02, 12 January 2023 (UTC)[reply]
Author parameter of Template:Book support Wikidata item. Same still need to be done for Publisher. City is another reasonable candidate for that. --EugeneZelenko (talk) 16:03, 13 January 2023 (UTC)[reply]
Like this? --Bebiezaza (talk) 17:13, 13 January 2023 (UTC)[reply]
Yes. --EugeneZelenko (talk) 15:30, 14 January 2023 (UTC)[reply]
Second test run, following files uploaded:
  1. File:คำสั่ง คสช ๒๕๕๗-๐๖๑.pdf
  2. File:คำสั่ง คสช ๒๕๕๗-๐๖๒.pdf
  3. File:คำสั่ง คสช ๒๕๕๗-๐๖๓.pdf
  4. File:คำสั่ง คสช ๒๕๕๗-๐๖๔.pdf
  5. File:คำสั่ง คสช ๒๕๕๗-๐๖๕.pdf
For files previously uploaded, I can go through and update them by myself --Bebiezaza (talk) 18:35, 14 January 2023 (UTC)[reply]
Looks OK for me, but will be good idea to enhance Wikidata support in Template:Book. --EugeneZelenko (talk) 15:40, 15 January 2023 (UTC)[reply]
Template:Book (Module:Artwork) is template-protected. And I don't think I'm qualified enough to edit the module by myself. --Bebiezaza (talk) 16:04, 15 January 2023 (UTC)[reply]
I just checked some other uploads and found out that I can use Institution:Cabinet Secretariat of Thailand for Publisher field, will update to use it for the next run --Bebiezaza (talk) 05:57, 16 January 2023 (UTC)[reply]
Did you leave request on this template talk page? At least maintainers should be aware about it. --EugeneZelenko (talk) 15:55, 16 January 2023 (UTC)[reply]
@EugeneZelenko: What do you mean by that? Module:Artwork? --Bebiezaza (talk) 16:27, 16 January 2023 (UTC)[reply]
Both, if changes should be made in both. --EugeneZelenko (talk) 16:30, 16 January 2023 (UTC)[reply]
I have made the recommendation here. But in my opinion, this is becoming an off-topic discussion for a bot request. Is my bot good to go for receiving the bot flag? --Bebiezaza (talk) 12:04, 18 January 2023 (UTC)[reply]
I will not be able to use computers next week (22-28 January) and may not be able to respond to any updates here until the following week. --Bebiezaza (talk) 04:30, 21 January 2023 (UTC)[reply]

Looks ok to me. Any objections? --Krd 06:43, 29 January 2023 (UTC)[reply]


Approved. --Krd 03:57, 6 February 2023 (UTC)[reply]