User talk:Polygnotus/PAWS: Difference between revisions

From Wikipedia, the free encyclopedia

Content deleted Content added


 

Line 19: Line 19:

:::::@[[User:Dw31415|Dw31415]] See above. [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 14:29, 9 December 2025 (UTC)

:::::@[[User:Dw31415|Dw31415]] See above. [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 14:29, 9 December 2025 (UTC)

:::::@[[User:Sohom Datta|Sohom Datta]], nice work on your bot! I appreciate your contributions on that Does your bot use a data store? If so could you point me to your code where it uses a db? [[User:Dw31415|<span style=”background-color: snow; font-family: ‘Linux Libertine’, ‘Georgia’, ‘Times’, ‘Source Serif Pro’, serif”>Dw31415</span>]] ([[User talk:Dw31415#top|talk]]) 15:39, 9 December 2025 (UTC)

:::::@[[User:Sohom Datta|Sohom Datta]], nice work on your bot! I appreciate your contributions on that Does your bot use a data store? If so could you point me to your code where it uses a db? [[User:Dw31415|<span style=”background-color: snow; font-family: ‘Linux Libertine’, ‘Georgia’, ‘Times’, ‘Source Serif Pro’, serif”>Dw31415</span>]] ([[User talk:Dw31415#top|talk]]) 15:39, 9 December 2025 (UTC)

::::::p.s. I ask because I’m interested in how Legobot works with RfC’s and how similar functionality could be done in PyWikibot in Toolforge. [[User:Dw31415|<span style=”background-color: snow; font-family: ‘Linux Libertine’, ‘Georgia’, ‘Times’, ‘Source Serif Pro’, serif”>Dw31415</span>]] ([[User talk:Dw31415#top|talk]]) 15:42, 9 December 2025 (UTC)


Latest revision as of 15:42, 9 December 2025

@Polygnotus Thanks for sharing this. Which notebook do you think is most similar to Legobot? Do any use a datastore? Dw31415 (talk) 03:51, 9 December 2025 (UTC)[reply]

@Dw31415 If you go to User:Legobot in the infobox you’ll see [1] [2] (Task 33)
Task 33 is described as Take over of RFC bot task 1 (maintain Wikipedia:Requests for comment and various other reports)
The Gitlab thing is an WP:MFD archiver written in Rust, not what we want.
In that list of files on Github you can see rfcbot.php. When you click on it you see rfcbot.php
It uses new_mediawiki.php behind the scenes.
and it stores its data in rfcbot.sql
Polygnotus (talk) 08:19, 9 December 2025 (UTC)[reply]
In Python you could use something like User:Polygnotus/PAWS/Transclusions to get all transclusions of the RfC template.
This uses pywikibot. Polygnotus (talk) 08:56, 9 December 2025 (UTC)[reply]
It wasn’t immediately obvious to me how you secure secrets (user-password.cfg) on PAWS. Could you please point me in the right direction for that? Dw31415 (talk) 13:21, 9 December 2025 (UTC)[reply]
@Dw31415 I only used ~/.my.cnf for mysql. I think you just chmod 600, right? I don’t think there is such a thing as security in the sense that you are using someone elses computer which makes all forms of protection moot. If you actually find a way to protect secrets please let me know but I kinda assumed there was no such thing. Polygnotus (talk) 13:37, 9 December 2025 (UTC)[reply]
@Sohom Datta: Do you happen to know if PAWS has a way to deal with secrets? Polygnotus (talk) 14:06, 9 December 2025 (UTC)[reply]
@Polygnotus You can create arbitrary files or run arbitrary commands that not registered in the notebook by going into the File menu, clicking New and selecting “Terminal” or “Text file” where you can put secrets. There isn’t any specific secret management solution (to my understanding). For what it’s worth, to my understanding it’s a dockerized instance of Jupyter Hub, so unless you share it around, folks won’t be able to see your secrets (and while theoretically the WMF roots will be able to see your data, the chances of them doing anything untoward with your password are nil, cause if they did, they would probably get fired) Sohom (talk) 14:23, 9 December 2025 (UTC)[reply]
Thanks. Learning something new every day. Yeah we probably won’t get ‘hacked’ by people who already have access to anything and everything. Polygnotus (talk) 14:24, 9 December 2025 (UTC)[reply]
@Dw31415 See above. Polygnotus (talk) 14:29, 9 December 2025 (UTC)[reply]
@Sohom Datta, nice work on your bot! I appreciate your contributions on that Does your bot use a data store? If so could you point me to your code where it uses a db? Dw31415 (talk) 15:39, 9 December 2025 (UTC)[reply]
p.s. I ask because I’m interested in how Legobot works with RfC’s and how similar functionality could be done in PyWikibot in Toolforge. Dw31415 (talk) 15:42, 9 December 2025 (UTC)[reply]

Leave a Comment

Your email address will not be published. Required fields are marked *

Exit mobile version