{"action":"created","issue":{"url":"https://api.github.com/repos/siznax/wptools/issues/60","repository_url":"https://api.github.com/repos/siznax/wptools","labels_url":"https://api.github.com/repos/siznax/wptools/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/siznax/wptools/issues/60/comments","events_url":"https://api.github.com/repos/siznax/wptools/issues/60/events","html_url":"https://github.com/siznax/wptools/issues/60","id":217056077,"number":60,"title":"Get text extract with internal wikilinks?","user":{"login":"peeter-t2","id":4077432,"avatar_url":"https://avatars3.githubusercontent.com/u/4077432?v=3","gravatar_id":"","url":"https://api.github.com/users/peeter-t2","html_url":"https://github.com/peeter-t2","followers_url":"https://api.github.com/users/peeter-t2/followers","following_url":"https://api.github.com/users/peeter-t2/following{/other_user}","gists_url":"https://api.github.com/users/peeter-t2/gists{/gist_id}","starred_url":"https://api.github.com/users/peeter-t2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peeter-t2/subscriptions","organizations_url":"https://api.github.com/users/peeter-t2/orgs","repos_url":"https://api.github.com/users/peeter-t2/repos","events_url":"https://api.github.com/users/peeter-t2/events{/privacy}","received_events_url":"https://api.github.com/users/peeter-t2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-26T14:33:24Z","updated_at":"2017-03-26T20:44:25Z","closed_at":"2017-03-26T20:44:25Z","body":"Hi! Great app, thanks for making it!\r\n\r\nIs there any way to retreive the summary text with the internal wikilinks intact? Both \"extract\" and \"extext\" remove the links it seems.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/siznax/wptools/issues/comments/289313660","html_url":"https://github.com/siznax/wptools/issues/60#issuecomment-289313660","issue_url":"https://api.github.com/repos/siznax/wptools/issues/60","id":289313660,"user":{"login":"siznax","id":44357,"avatar_url":"https://avatars1.githubusercontent.com/u/44357?v=3","gravatar_id":"","url":"https://api.github.com/users/siznax","html_url":"https://github.com/siznax","followers_url":"https://api.github.com/users/siznax/followers","following_url":"https://api.github.com/users/siznax/following{/other_user}","gists_url":"https://api.github.com/users/siznax/gists{/gist_id}","starred_url":"https://api.github.com/users/siznax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siznax/subscriptions","organizations_url":"https://api.github.com/users/siznax/orgs","repos_url":"https://api.github.com/users/siznax/repos","events_url":"https://api.github.com/users/siznax/events{/privacy}","received_events_url":"https://api.github.com/users/siznax/received_events","type":"User","site_admin":false},"created_at":"2017-03-26T20:44:25Z","updated_at":"2017-03-26T20:44:25Z","body":"Hi @peeter-t2, thanks for opening an issue!\r\n\r\nYou can get a raw HTML extract via [RESTBase](https://www.mediawiki.org/wiki/RESTBase) using `get_rest`: \r\n\r\n```python\r\n>>> import wptools\r\n>>> p = wptools.page('Orangutan')\r\n>>> p.get_rest()\r\n>>> p.cache['rest']['html'][:80]\r\nThe <b>orangutans</b> (also spelled <b>orang-utan</b>, <b>orangutang</b>, or <b>\r\n```\r\n\r\nI promoted it like other extracts to the `exhtml` attribute with c041534:\r\n\r\n```python\r\n>>> p.exhtml[:80]\r\nThe <b>orangutans</b> (also spelled <b>orang-utan</b>, <b>orangutang</b>, or <b>\r\n```\r\n\r\nHope that helps!\r\n"}}
{"actor":{"display_login":"siznax"}}