Re: [Mediawiki-api] "see also" parser strange output

2017-08-23 Thread Max Vlasov
Oh, thanks, I see. So this is intentional. I once wanted to exclude somehow backlinks originated from infoboxes, now I see that infoboxes also affect sections links. Probably I should do the parsing by myself to control this. Personally I think that links originated from infoboxes should be

Re: [Mediawiki-api] "see also" parser strange output

2017-08-23 Thread Brad Jorsch (Anomie)
On Wed, Aug 23, 2017 at 10:32 AM, Max Vlasov wrote: > I'm using two step approach to retrieve "see also" section links from > articles by retrieving sections and using the section index for links > action. > Today I noticed that for the article "Synchronous programming

Re: [Mediawiki-api] "see also" parser strange output

2017-08-23 Thread bawolff
Presumably this is because the infobox is at the end of the article, so is counted as being part of the final section, which is the see also section. So you are also getting everything in https://en.wikipedia.org/wiki/Template:Types_of_programming_languages. You could maybe adjust this algorithm

[Mediawiki-api] "see also" parser strange output

2017-08-23 Thread Max Vlasov
Hi, I'm using two step approach to retrieve "see also" section links from articles by retrieving sections and using the section index for links action. Today I noticed that for the article "Synchronous programming language" this gives unexpected results. The page