Framawiki created this task.
Framawiki added projects: Pywikibot, Pywikibot-pagegenerators.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  As I understand from the code it's not possible using script argument (like 
in listpages.py) to fetch other external link than http ones, the default of 
the generator. https is obviously the most missed one.
  
  name=pagegenerators.py
    def _handle_weblink(self, value):
        """Handle `-weblink` argument."""
        if not value:
                value = pywikibot.input(
                        'Pages with which weblink should be processed?')
        # If url is * we make it None in order to search for every page
        # with any URL.
        if value == '*':
                value = None
        return LinksearchPageGenerator(value, site=self.site)
    
    @deprecated_args(link='url', euprotocol='protocol', step=None)
    def LinksearchPageGenerator(url, namespaces=None, total=None, site=None, 
protocol='http'):
        """Yield all pages that link to a certain URL, like Special:Linksearch.
        @param url: The URL to search for (without the protocol prefix);
        this may include a '*' as a wildcard, only at the start of the
        hostname
        @type url: str
        @param namespaces: list of namespace numbers to fetch contribs from
        @type namespaces: list of int
        @param total: Maximum number of pages to retrieve in total
        @type total: int
        @param site: Site for generator results.
        @type site: L{pywikibot.site.BaseSite}
        """
        if site is None:
                site = pywikibot.Site()
        return site.exturlusage(url, namespaces=namespaces, protocol=protocol,
                                total=total, content=False)

TASK DETAIL
  https://phabricator.wikimedia.org/T251310

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Framawiki
Cc: Aklapper, pywikibot-bugs-list, Framawiki, Dijkstra, Zkhalido, Viztor, 
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy, DannyS712
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to