Quantcast

parse feature inconsistency

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

parse feature inconsistency

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" 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: parse feature inconsistency

Betacommand

On Fri, Jan 27, 2017 at 8:06 AM, Max Vlasov <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: parse feature inconsistency

Max Vlasov
Thanks, it works now

On Fri, Jan 27, 2017 at 4:20 PM, Betacommand <[hidden email]> wrote:

On Fri, Jan 27, 2017 at 8:06 AM, Max Vlasov <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Loading...