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-al... ), suggesting parsing sections first and then parsing "see also" separately. It had a Chicago working example, but when I try to do the same with the "Set theory" article, I get an empty result, so the url
https://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=S...
returns an empty list of section while there are obviously many sections in this article.
Is this expected?
Thanks
Max
That would be because of capitalization see https://en.wikipedia.org/w/api.php?action=parse&prop=sections&page=S...
On Fri, Jan 27, 2017 at 8:06 AM, Max Vlasov max.vlasov@gmail.com wrote:
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" separately. It had a Chicago working example, but when I try to do the same with the "Set theory" article, I get an empty result, so the url
https://en.wikipedia.org/w/api.php?action=parse&prop= sections&page=Set_Theory
returns an empty list of section while there are obviously many sections in this article.
Is this expected?
Thanks
Max
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Thanks, it works now
On Fri, Jan 27, 2017 at 4:20 PM, Betacommand Betacommand@gmail.com wrote:
That would be because of capitalization see https://en.wikipedia.org/w/ api.php?action=parse&prop=sections&page=Set_theory
On Fri, Jan 27, 2017 at 8:06 AM, Max Vlasov max.vlasov@gmail.com wrote:
Hi,
Trying to find a way to extract links from a wikipedia see also section, noticed a stackoverflow answer ( http://stackoverflow.com/quest ions/37396367/how-to-extract-links-from-see-also-section- of-an-article-in-wikipedia ), suggesting parsing sections first and then parsing "see also" separately. It had a Chicago working example, but when I try to do the same with the "Set theory" article, I get an empty result, so the url
https://en.wikipedia.org/w/api.php?action=parse&prop=section s&page=Set_Theory
returns an empty list of section while there are obviously many sections in this article.
Is this expected?
Thanks
Max
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org