I've been recently trying to use the cleanupSpam.php to get rid of spam pages as I've been doing lately. However since a week or so I cannot get any page deleted using the script because apparently no page is found using the written domain. However, those pages and domains are indeed present on the spam pages. Trying to use Special:LinkSearch or API:Extlinks do not display them. What can be the issue and how to fix it? Thanks.
Edit: the problem with linksearch seemed to be the https:// protocol. As for API:extlinks, sometimes they appear, sometimes they do not. So maybe this is an issue with the maintenance script only or something wrong with the wiki db, or both.
Edit 2: after further checks, domains starting with http:// are detected okay, but not those starting with https:// or other protocols.