Page MenuHomePhabricator

Fix or replace Citation bot (tracking) [AOI]
Closed, ResolvedPublic


It looks like Citation bot is currently blocked because it started blanking articles about a month ago. Let's see if we can help fix or replace it. - bug reports and discussion about replacing it - The bot's maintainer (semi-active) - Usage instructions - source code (PHP) - source code (might be more up to data) - web interface

There are three main parts to the Citation Bot(s): creating cite doi templates through citewatch.php and arxivwatch.php, as User:Citation Bot 2; maintaining citations through cron-doibot.php, as User:Citation Bot 1; and facilitating manual citation entry, through doibot.php (entry point:, as Citation Bot) and text.php (activated from the gadget). None of these is currently working.

Dev fork:

Event Timeline

kaldari raised the priority of this task from to Needs Triage.
kaldari updated the task description. (Show Details)
kaldari added a project: Community-Tech.
kaldari added a subscriber: kaldari.
kaldari renamed this task from [AOI] Fix/replace Citation bot to [AOI] Fix or replace Citation bot.Aug 13 2015, 9:41 PM
kaldari updated the task description. (Show Details)
kaldari set Security to None.

Martin (the bot maintainer) would be happy for us to work on fixing the bot. He suggested that the issue might be due to using http instead of https for some of the API requests. I've asked to be added as a maintainer to the Tool Labs projects (there are 3).

kaldari triaged this task as High priority.Aug 25 2015, 6:04 PM

From sprint kick-off meeting:
Support: Very High
Feasibility: Good
Impact: Medium
Risk: Low

Priority: High

We already have Citoid and the citation generation function in VisualEditor. Wouldn't the most effective approach be to build a version of that for the wikitext editor?

@harej-NIOSH The (old) Citation bot ran on existing references on articles and filled out /chenged information in them. Like if only a doi was added, the bot would fill out that template completely, without having the user copy every single doi/reference in to a tool. It also make searched on crossref based on author, title, journal etc. to find doi's, which Citoid doens't.

suggestion to start a CitationBot-project here on Phab?

Will the bot/tool be supported by the Community-tech in the future if problems would arise, or would that be left to the community to fix. (see my above commment)


We don't currently have plans to maintain this bot, as we're working on it in the time before launching our community ideas survey. has our current plans, and if this comes up as a community priority in the upcoming ideas survey we'd work on it then. Regardless, if there are people in the community interested in maintaining or improving it, I've added some documentation to the repository already and I'm happy to walk them through my understanding of the bot/tool/gadget and how they all fit together.

I would still like to see the bug reportings for this bot/tool be on Phabricator, for greater...exposure, so to speak, even if there are no set developers. What do you think about that?

There's a related discussion on tracking gadget bugs on Phabricator, here:

If there is a maintenance team that wants to use Phabricator to communicate and consolidate reports, I support them using whatever tools they think are appropriate, but I fear that making a board for an unmaintained project may lead to the expectation from reporters that their reports will be acted on quickly/at all, leading to frustration when they are not.

What about showcasing Citation bot as automated tool taking advantage of Parsoid?
@ssastry @cscott

What about showcasing Citation bot as automated tool taking advantage of Parsoid?
@ssastry @cscott

Not to rain on anyones parade, but I do believe that the bot is smarter than Parsoid, accepting more kinds of IDs and can expand current references. I think Citoid can take advantage of the bots code however.

Are you guys talking about Citoid (rather than Parsoid)?

Are you guys talking about Citoid (rather than Parsoid)?

I am not.
Parsoid could be useful to replace the parser in

I haven't followed the discussion here .. but quickly, as a superficial remark, if wikitext parsing is involved and if that is what tripping up this tool, then yes, Parsoid could be helpful. I'll have to come back and take a closer look at all this, if you need more informed input about the problem.

Frankly, if I were to make any more substantial changes to this bot I would want to rewrite it from scratch. It's true it might benefit from using Parsoid, but it would also benefit from not using a 15-year-old scraping library to handle the HTTP. Again, I'm happy to coordinate and discuss with anyone who's interested in taking on maintainership or working with the bot's code.

This comment was removed by Josve05a.
DannyH renamed this task from [AOI] Fix or replace Citation bot to Fix or replace Citation bot [AOI].Oct 28 2015, 7:05 PM
DannyH renamed this task from Fix or replace Citation bot [AOI] to Fix or replace Citation bot (tracking) [AOI].Oct 28 2015, 7:41 PM