{"action":"created","comment":{"url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/comments/76782041","id":76782041,"diff_hunk":"@@ -1,16 +1,29 @@\n package io.github.bookcrawler.core.impl;\n \n import io.github.bookcrawler.core.BookExtractor;\n+import io.github.bookcrawler.core.SourceScrapper;\n import io.github.bookcrawler.entities.BookInfo;\n \n import java.util.Collection;\n+import java.util.stream.Collectors;\n \n import static io.github.bookcrawler.core.BookStore.EMPIK;\n \n public class EmpikBooksExtractor implements BookExtractor {\n \n+    private SourceScrapper sourceScrapper;\n+\n+    public EmpikBooksExtractor(SourceScrapper sourceScrapper) {\n+        this.sourceScrapper = sourceScrapper;\n+    }\n+\n+    @Override\n     public Collection<BookInfo> extract() {\n-        return EMPIK.parser().parse(EMPIK.crawler().crawl());\n+        return EMPIK.crawler().crawl(EMPIK.startUrl(), sourceScrapper).parallelStream()","path":"src/main/java/io/github/bookcrawler/core/impl/EmpikBooksExtractor.java","position":23,"original_position":23,"commit_id":"4b1f62a3e773721977f8c7339ef2712d8fe25786","original_commit_id":"4b1f62a3e773721977f8c7339ef2712d8fe25786","user":{"login":"KPP13","id":17355029,"avatar_url":"https://avatars.githubusercontent.com/u/17355029?v=3","gravatar_id":"","url":"https://api.github.com/users/KPP13","html_url":"https://github.com/KPP13","followers_url":"https://api.github.com/users/KPP13/followers","following_url":"https://api.github.com/users/KPP13/following{/other_user}","gists_url":"https://api.github.com/users/KPP13/gists{/gist_id}","starred_url":"https://api.github.com/users/KPP13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KPP13/subscriptions","organizations_url":"https://api.github.com/users/KPP13/orgs","repos_url":"https://api.github.com/users/KPP13/repos","events_url":"https://api.github.com/users/KPP13/events{/privacy}","received_events_url":"https://api.github.com/users/KPP13/received_events","type":"User","site_admin":false},"body":"streams :heart: ","created_at":"2016-08-30T12:09:55Z","updated_at":"2016-08-30T12:09:55Z","html_url":"https://github.com/maciejkocur/Maciek-robot/pull/12#discussion_r76782041","pull_request_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/comments/76782041"},"html":{"href":"https://github.com/maciejkocur/Maciek-robot/pull/12#discussion_r76782041"},"pull_request":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12","id":83224624,"html_url":"https://github.com/maciejkocur/Maciek-robot/pull/12","diff_url":"https://github.com/maciejkocur/Maciek-robot/pull/12.diff","patch_url":"https://github.com/maciejkocur/Maciek-robot/pull/12.patch","issue_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/12","number":12,"state":"open","locked":false,"title":"Crawler Module refactored","user":{"login":"maciejkocur","id":20284242,"avatar_url":"https://avatars.githubusercontent.com/u/20284242?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkocur","html_url":"https://github.com/maciejkocur","followers_url":"https://api.github.com/users/maciejkocur/followers","following_url":"https://api.github.com/users/maciejkocur/following{/other_user}","gists_url":"https://api.github.com/users/maciejkocur/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkocur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkocur/subscriptions","organizations_url":"https://api.github.com/users/maciejkocur/orgs","repos_url":"https://api.github.com/users/maciejkocur/repos","events_url":"https://api.github.com/users/maciejkocur/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkocur/received_events","type":"User","site_admin":false},"body":"Interfaces changed to have more testable code.\r\nAnnotated as Functional.\r\nChange lamdas to methode references if possible.\r\nHandle null existing by filtering in streams operations.","created_at":"2016-08-30T07:59:28Z","updated_at":"2016-08-30T12:09:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a704aabc6d0e18e4d13128c6a72e1206a074d3d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12/commits","review_comments_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12/comments","review_comment_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/12/comments","statuses_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/statuses/4b1f62a3e773721977f8c7339ef2712d8fe25786","head":{"label":"maciejkocur:parser-refactor","ref":"parser-refactor","sha":"4b1f62a3e773721977f8c7339ef2712d8fe25786","user":{"login":"maciejkocur","id":20284242,"avatar_url":"https://avatars.githubusercontent.com/u/20284242?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkocur","html_url":"https://github.com/maciejkocur","followers_url":"https://api.github.com/users/maciejkocur/followers","following_url":"https://api.github.com/users/maciejkocur/following{/other_user}","gists_url":"https://api.github.com/users/maciejkocur/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkocur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkocur/subscriptions","organizations_url":"https://api.github.com/users/maciejkocur/orgs","repos_url":"https://api.github.com/users/maciejkocur/repos","events_url":"https://api.github.com/users/maciejkocur/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkocur/received_events","type":"User","site_admin":false},"repo":{"id":66376063,"name":"Maciek-robot","full_name":"maciejkocur/Maciek-robot","owner":{"login":"maciejkocur","id":20284242,"avatar_url":"https://avatars.githubusercontent.com/u/20284242?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkocur","html_url":"https://github.com/maciejkocur","followers_url":"https://api.github.com/users/maciejkocur/followers","following_url":"https://api.github.com/users/maciejkocur/following{/other_user}","gists_url":"https://api.github.com/users/maciejkocur/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkocur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkocur/subscriptions","organizations_url":"https://api.github.com/users/maciejkocur/orgs","repos_url":"https://api.github.com/users/maciejkocur/repos","events_url":"https://api.github.com/users/maciejkocur/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkocur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maciejkocur/Maciek-robot","description":"Screen scraping project for e-libraries","fork":true,"url":"https://api.github.com/repos/maciejkocur/Maciek-robot","forks_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/forks","keys_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/teams","hooks_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/hooks","issue_events_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/events{/number}","events_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/events","assignees_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/assignees{/user}","branches_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/branches{/branch}","tags_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/tags","blobs_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/languages","stargazers_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/stargazers","contributors_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/contributors","subscribers_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/subscribers","subscription_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/subscription","commits_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/contents/{+path}","compare_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/merges","archive_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/downloads","issues_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues{/number}","pulls_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/labels{/name}","releases_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/releases{/id}","deployments_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/deployments","created_at":"2016-08-23T14:48:10Z","updated_at":"2016-08-28T16:41:47Z","pushed_at":"2016-08-30T09:41:36Z","git_url":"git://github.com/maciejkocur/Maciek-robot.git","ssh_url":"git@github.com:maciejkocur/Maciek-robot.git","clone_url":"https://github.com/maciejkocur/Maciek-robot.git","svn_url":"https://github.com/maciejkocur/Maciek-robot","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"maciejkocur:master","ref":"master","sha":"c347e0ebe5a8f5c1b35bacd40baf335dff2cc10d","user":{"login":"maciejkocur","id":20284242,"avatar_url":"https://avatars.githubusercontent.com/u/20284242?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkocur","html_url":"https://github.com/maciejkocur","followers_url":"https://api.github.com/users/maciejkocur/followers","following_url":"https://api.github.com/users/maciejkocur/following{/other_user}","gists_url":"https://api.github.com/users/maciejkocur/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkocur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkocur/subscriptions","organizations_url":"https://api.github.com/users/maciejkocur/orgs","repos_url":"https://api.github.com/users/maciejkocur/repos","events_url":"https://api.github.com/users/maciejkocur/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkocur/received_events","type":"User","site_admin":false},"repo":{"id":66376063,"name":"Maciek-robot","full_name":"maciejkocur/Maciek-robot","owner":{"login":"maciejkocur","id":20284242,"avatar_url":"https://avatars.githubusercontent.com/u/20284242?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkocur","html_url":"https://github.com/maciejkocur","followers_url":"https://api.github.com/users/maciejkocur/followers","following_url":"https://api.github.com/users/maciejkocur/following{/other_user}","gists_url":"https://api.github.com/users/maciejkocur/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkocur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkocur/subscriptions","organizations_url":"https://api.github.com/users/maciejkocur/orgs","repos_url":"https://api.github.com/users/maciejkocur/repos","events_url":"https://api.github.com/users/maciejkocur/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkocur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maciejkocur/Maciek-robot","description":"Screen scraping project for e-libraries","fork":true,"url":"https://api.github.com/repos/maciejkocur/Maciek-robot","forks_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/forks","keys_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/teams","hooks_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/hooks","issue_events_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/events{/number}","events_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/events","assignees_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/assignees{/user}","branches_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/branches{/branch}","tags_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/tags","blobs_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/languages","stargazers_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/stargazers","contributors_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/contributors","subscribers_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/subscribers","subscription_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/subscription","commits_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/contents/{+path}","compare_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/merges","archive_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/downloads","issues_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues{/number}","pulls_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/labels{/name}","releases_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/releases{/id}","deployments_url":"https://api.github.com/repos/maciejkocur/Maciek-robot/deployments","created_at":"2016-08-23T14:48:10Z","updated_at":"2016-08-28T16:41:47Z","pushed_at":"2016-08-30T09:41:36Z","git_url":"git://github.com/maciejkocur/Maciek-robot.git","ssh_url":"git@github.com:maciejkocur/Maciek-robot.git","clone_url":"https://github.com/maciejkocur/Maciek-robot.git","svn_url":"https://github.com/maciejkocur/Maciek-robot","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12"},"html":{"href":"https://github.com/maciejkocur/Maciek-robot/pull/12"},"issue":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/12"},"comments":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/maciejkocur/Maciek-robot/statuses/4b1f62a3e773721977f8c7339ef2712d8fe25786"}}}}
{"actor":{"display_login":"KPP13"}}