Filtering for red links can also be done through the API one page at a time
using action=parse and prop=links.[1] However, I don't know if Pywikibot
supports this usage of the parse action.

[1] Example:
https://en.wikipedia.org/w/api.php?action=parse&format=jsonfm&page=Template%3ACoquimbo%20Region%20rivers%20and%20lakes&prop=links


On Mon, Sep 8, 2014 at 3:40 AM, Bináris <[email protected]> wrote:

> Although working from HTML seems to be uncommon and strange for an
> API-based environment, in this special case it is easy and worth a try.
>
> 2014-09-08 9:13 GMT+02:00 Bináris <[email protected]>:
>
>> Please have a look at
>> https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/piroskat-userallap.py
>> Unfortunately, not all comments are in English, sorry for that.
>>
>> def redCategories
>>
>> shows how an HTML source can be downloaded and processed for red category
>> links. "(megíratlan szócikk)" after the title within brackets means
>> "unwritten article", I don't know the English phrase. "piros" in comments
>> means red and "kék" means blue.
>>
>
>
>
> --
> Bináris
>
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
>
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to