Commons:Bots/Requests/GraphBot
GraphBot (talk · contribs)
Operator: GalStar (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)
Bot's tasks for which permission is being sought:
- Generate the necessary .chart and .tab files for graphs that use the deprecated Graph Extension
- At the moment I feed the bot the article where the graphs need updating. It needs manual interval to specify the title of the graph.
Automatic or manually assisted: I manually specify what wikipedia articles to extract graphs from.
Edit type (e.g. Continuous, daily, one time run): Continuous
Maximum edit rate (e.g. edits per minute): anything it needs to be, since it's manually assisted the rate is limited
Bot flag requested: (Y/N): Y
Programming language(s): Rust, Python
GalStar (talk) 06:45, 3 June 2025 (UTC)
- Discussion
- Interesting, this seems very useful. Is this done for all articles that use the graphs or how is
generation … manually triggered
? Also see graphDataImport. --Prototyperspective (talk) 09:54, 3 June 2025 (UTC)- So my idea here is to slowly ramp up the amount that is automated. Occasionally graphs are broken and I need to double check everything (I believe most of the bugs have been fixed). Also the code itself is prone to panicking (i.e. aborting) if anything is out of line. At the moment the interface for me is the following:
- *:> cargo run -- "[Name of Article]" *:[bunch of diagnostics] *:Enter name of first graph > [user input] *:[more diagnostics] *:Enter name of nth graph > [more user input] *:
- And as each graph name is inputted the appropriate chart/tab files are created. Currently the main issue is that wikipedia articles often do not provide graph titles (see https://en.wikipedia.org/wiki/Demographics_of_Albania for examples).
- I have been considering having a talk-page template that could somehow mark the names of the graphs, but I need to flesh that idea out a little, and maybe ask the en-wikipedia folks for suggestions on that front.
- I have graph data import enabled as an user script, but it doesn't work for all cases (from the few times I used it, it made malformed graphs and I needed to use graphbot to generate the correct .tab file content).
- Cheers, GalStar (talk) 17:13, 3 June 2025 (UTC)
- Actually this is no longer the case. en:User:GraphBot has some details, but essentially it is fully automated now. GalStar (talk) 02:53, 6 June 2025 (UTC)
- relevant discussion on enwiki: en:Wikipedia:Bots/Requests for approval/GraphBot. —usernamekiran (talk) 21:10, 7 June 2025 (UTC)
- The wikipedia side of the bot has now been approved for a trial of 50 edits. If there are no objections, I will perform the trail, which will result in the creation of 100 files. I can review each file afterwards if needed. GalStar (talk) 17:36, 8 June 2025 (UTC)
- Please do. Krd 16:44, 12 June 2025 (UTC)
- The wikipedia side of the bot has now been approved for a trial of 50 edits. If there are no objections, I will perform the trail, which will result in the creation of 100 files. I can review each file afterwards if needed. GalStar (talk) 17:36, 8 June 2025 (UTC)
- This bot has now been approved on en wikipedia.