{"action":"created","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/850","labels_url":"https://api.github.com/repos/cantino/huginn/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/850/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/850/events","html_url":"https://github.com/cantino/huginn/issues/850","id":87061752,"number":850,"title":"WebsiteAgent: Extract .//node() error","user":{"login":"irfancharania","id":3255038,"avatar_url":"https://avatars.githubusercontent.com/u/3255038?v=3","gravatar_id":"","url":"https://api.github.com/users/irfancharania","html_url":"https://github.com/irfancharania","followers_url":"https://api.github.com/users/irfancharania/followers","following_url":"https://api.github.com/users/irfancharania/following{/other_user}","gists_url":"https://api.github.com/users/irfancharania/gists{/gist_id}","starred_url":"https://api.github.com/users/irfancharania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfancharania/subscriptions","organizations_url":"https://api.github.com/users/irfancharania/orgs","repos_url":"https://api.github.com/users/irfancharania/repos","events_url":"https://api.github.com/users/irfancharania/events{/privacy}","received_events_url":"https://api.github.com/users/irfancharania/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-10T18:28:13Z","updated_at":"2015-06-13T03:55:29Z","closed_at":"2015-06-11T12:32:46Z","body":"Setting `value` to __.//node()__ seems to double up the extracted text (try it to see)\r\n\r\n__Agent: test__\r\nType: Website Agent\r\n```json\r\n{\r\n  \"expected_update_period_in_days\": \"7\",\r\n  \"url\": \"http://theoatmeal.com/blog/dogs_nazis_horses\",\r\n  \"type\": \"html\",\r\n  \"mode\": \"on_change\",\r\n  \"extract\": {\r\n    \"body_text\": {\r\n      \"css\": \"#blog .post_body\",\r\n      \"value\": \".//node()\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nWhereas setting `value` to __normalize-space(.)__ extracts it correctly. I would expect __.//node()__ to just give me the html as is on the web page.\r\n\r\nI'm wondering if I'm doing something wrong or if this is a bug."},"comment":{"url":"https://api.github.com/repos/cantino/huginn/issues/comments/111667351","html_url":"https://github.com/cantino/huginn/issues/850#issuecomment-111667351","issue_url":"https://api.github.com/repos/cantino/huginn/issues/850","id":111667351,"user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T03:55:29Z","updated_at":"2015-06-13T03:55:29Z","body":"@irfancharania, would you be interested in updating the doc?"}}