This bot used to generate a list of pages from Category:Portal templates with redlinked portals and Category:Portal templates with all redlinked portals, then scanned each page for the portal which is redlinked. When the bot found the redliked portal(s) on the page, it added these to a list. The list was then saved in a table on Wikipedia:WikiProject Portals/Wanted portals.