{"id":7344,"date":"2017-06-11T13:42:08","date_gmt":"2017-06-11T11:42:08","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=7344"},"modified":"2017-06-11T13:42:08","modified_gmt":"2017-06-11T11:42:08","slug":"mediawiki-how-to-extract-the-wiki-text-only-from-an-article","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2017\/06\/11\/mediawiki-how-to-extract-the-wiki-text-only-from-an-article\/","title":{"rendered":"MediaWiki:\u00a0how to extract the wiki text (only) from an article?"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/1625162\/get-text-content-from-mediawiki-page-via-api\">https:\/\/stackoverflow.com\/questions\/1625162\/get-text-content-from-mediawiki-page-via-api<\/a><\/li>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/33844207\/how-to-get-wikipedia-content-as-text-by-api\">https:\/\/stackoverflow.com\/questions\/33844207\/how-to-get-wikipedia-content-as-text-by-api<\/a><\/li>\n<li><a href=\"https:\/\/www.mediawiki.org\/w\/api.php?action=help&amp;modules=query\">https:\/\/www.mediawiki.org\/w\/api.php?action=help&amp;modules=query<\/a><\/li>\n<\/ul>\n<p>The above articles (Stack Overflow) do not exactly answer my question, but they are rather close.<\/p>\n<p>The key is using api.php and action=query.<\/p>\n<p>Purpose: I want to compare articles of two rather close wikis, and the articles have a common ancestor.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/stackoverflow.com\/questions\/1625162\/get-text-content-from-mediawiki-page-via-api https:\/\/stackoverflow.com\/questions\/33844207\/how-to-get-wikipedia-content-as-text-by-api https:\/\/www.mediawiki.org\/w\/api.php?action=help&amp;modules=query The above articles (Stack Overflow) do not exactly answer my question, but they are rather close. The key is using api.php and action=query. Purpose: I want to compare articles of two rather close wikis, and the articles have a common ancestor.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[995,1390],"class_list":["post-7344","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-diff","tag-wikidiff"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Us","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=7344"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/7344\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=7344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=7344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=7344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}