{"action":"created","issue":{"url":"https://api.github.com/repos/Anonyfox/elixir-scrape/issues/21","repository_url":"https://api.github.com/repos/Anonyfox/elixir-scrape","labels_url":"https://api.github.com/repos/Anonyfox/elixir-scrape/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Anonyfox/elixir-scrape/issues/21/comments","events_url":"https://api.github.com/repos/Anonyfox/elixir-scrape/issues/21/events","html_url":"https://github.com/Anonyfox/elixir-scrape/issues/21","id":190779176,"number":21,"title":"Article scrape loses linked content","user":{"login":"dotdotdotpaul","id":55685,"avatar_url":"https://avatars.githubusercontent.com/u/55685?v=3","gravatar_id":"","url":"https://api.github.com/users/dotdotdotpaul","html_url":"https://github.com/dotdotdotpaul","followers_url":"https://api.github.com/users/dotdotdotpaul/followers","following_url":"https://api.github.com/users/dotdotdotpaul/following{/other_user}","gists_url":"https://api.github.com/users/dotdotdotpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/dotdotdotpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotdotdotpaul/subscriptions","organizations_url":"https://api.github.com/users/dotdotdotpaul/orgs","repos_url":"https://api.github.com/users/dotdotdotpaul/repos","events_url":"https://api.github.com/users/dotdotdotpaul/events{/privacy}","received_events_url":"https://api.github.com/users/dotdotdotpaul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T17:06:50Z","updated_at":"2016-11-25T16:05:31Z","closed_at":null,"body":"The article scrape feature seems to work pretty fantastically, given how impossible the task seems to be, but I do notice that if an article's content has links, the text of those links isn't returned as part of the fulltext attribute.  This results in some odd output, where if the source said something like \"For more information, click here.\" (where \"click here\" is linked) the actual fulltext comes back as \"For more information, .\"\r\n\r\nThis appears to extend to any marked-up text, as I'm noticing things like subheadings in articles are simply missing.  I might have some time this coming weekend to look into a solution, but if anyone's got a head start on this problem, let me know.\r\n"},"comment":{"url":"https://api.github.com/repos/Anonyfox/elixir-scrape/issues/comments/262987548","html_url":"https://github.com/Anonyfox/elixir-scrape/issues/21#issuecomment-262987548","issue_url":"https://api.github.com/repos/Anonyfox/elixir-scrape/issues/21","id":262987548,"user":{"login":"Anonyfox","id":1140758,"avatar_url":"https://avatars.githubusercontent.com/u/1140758?v=3","gravatar_id":"","url":"https://api.github.com/users/Anonyfox","html_url":"https://github.com/Anonyfox","followers_url":"https://api.github.com/users/Anonyfox/followers","following_url":"https://api.github.com/users/Anonyfox/following{/other_user}","gists_url":"https://api.github.com/users/Anonyfox/gists{/gist_id}","starred_url":"https://api.github.com/users/Anonyfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anonyfox/subscriptions","organizations_url":"https://api.github.com/users/Anonyfox/orgs","repos_url":"https://api.github.com/users/Anonyfox/repos","events_url":"https://api.github.com/users/Anonyfox/events{/privacy}","received_events_url":"https://api.github.com/users/Anonyfox/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T16:05:31Z","updated_at":"2016-11-25T16:05:31Z","body":"Yes, my very naive implementation seems to get the job done in many cases. I personally use the plaintext just for word analysis stuff, so I didn't even notice this behavior. \r\n\r\nIf you want to dig in a little, I believe the relevant line is this: \r\n\r\nhttps://github.com/Anonyfox/elixir-scrape/blob/master/lib/scrape/util/text.ex#L22\r\n\r\nwhere I just strip out everything that is HTML. I'd happily accept a PR!"}}
{"actor":{"display_login":"Anonyfox"}}