Re: [Mediawiki-api] Localized (translated) version of sections

2017-01-27 Thread Max Vlasov
Thanks, Brad and Gergo, now I see that there's no direct way to do this reliably. In the past I needed something similar when translating the root category Content to an arbitrary language. I found a workaround, when the titles were retrieved by scanning the Language section of Category:Contents

[Mediawiki-api] parse feature inconsistency

2017-01-27 Thread Max Vlasov
Hi, Trying to find a way to extract links from a wikipedia see also section, noticed a stackoverflow answer ( http://stackoverflow.com/questions/37396367/how-to-extract-links-from-see-also-section-of-an-article-in-wikipedia ), suggesting parsing sections first and then parsing "see also"

Re: [Mediawiki-api] parse feature inconsistency

2017-01-27 Thread Max Vlasov
Thanks, it works now On Fri, Jan 27, 2017 at 4:20 PM, Betacommand <betacomm...@gmail.com> wrote: > That would be because of capitalization see https://en.wikipedia.org/w/ > api.php?action=parse=sections=Set_theory > > On Fri, Jan 27, 2017 at 8:06 AM, Max Vlasov <max.vl

[Mediawiki-api] Localized (translated) version of sections

2017-01-27 Thread Max Vlasov
Hi again, Is there a way to get a localized version of section names of an article, for example "See also"? Currently my question is related to section names, but in general I would like to get language equivalent for other semantic entities. Are there docs about such things? I tried to find but

[Mediawiki-api] Backlinks list order

2017-06-02 Thread Max Vlasov
The docs say backlinks are sorted by titles ( https://www.mediawiki.org/wiki/API:Backlinks "Ordered by linking page title"). I noticed that this is partially true. So while most of them look like sorted alphabetically, usually there are sections at the end of the list when there are plenty

Re: [Mediawiki-api] Backlinks list order

2017-06-03 Thread Max Vlasov
On Fri, Jun 2, 2017 at 8:24 PM, Brad Jorsch (Anomie) wrote: > They're actually ordered by linking pageid if you don't specify multiple > values for blnamespace, or by namespace then pageid if you do. > > It may be better to use prop=linkshere rather than list=backlinks.

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

[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

[Mediawiki-api] Old Rendering or new approach

2023-02-02 Thread Max Vlasov
Hi, Wikipedia now renders with new design, so my previous tool relied on obtaining the text just by downloading it and applying an XPath, have to adjust to it. I have mixed results so the questions are: - Is there a plan to support the old design with some additional parameters? Even if not