{"action":"created","comment":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/147171667","pull_request_review_id":72199633,"id":147171667,"diff_hunk":"@@ -0,0 +1,37 @@\n+# Taking all links to hash\n+class Linker\n+  def initialize\n+    @test = Mechanize.new { |agent| agent.user_agent_alias = 'Mac Safari' }\n+    @page = ''\n+    @hsh_links = {}\n+  end\n+\n+  def page_get\n+    @page = @test.get('https://genius.com/artists/songs?for_artist_page=117146&id=King-of-the-dot')\n+  end\n+\n+  def arr_links\n+    first_page_links = @page.links_with(class: /song_name/)\n+    page_links = @page.links_with(href: /page=117146&id=King-of-the-dot&page=/)\n+    page_links.pop\n+    hsh_first_page(first_page_links)\n+    hsh_other_page(page_links)\n+  end\n+\n+  def hsh_first_page(arr_first)\n+    arr_first.each do |link|","path":"2017/EkimtsovPeter/2/parser/classes/linker.rb","position":22,"original_position":22,"commit_id":"9301b444c3a2d28390c3d9d8ef42713c30158191","original_commit_id":"9301b444c3a2d28390c3d9d8ef42713c30158191","user":{"login":"DDKatch","id":14095146,"avatar_url":"https://avatars0.githubusercontent.com/u/14095146?v=4","gravatar_id":"","url":"https://api.github.com/users/DDKatch","html_url":"https://github.com/DDKatch","followers_url":"https://api.github.com/users/DDKatch/followers","following_url":"https://api.github.com/users/DDKatch/following{/other_user}","gists_url":"https://api.github.com/users/DDKatch/gists{/gist_id}","starred_url":"https://api.github.com/users/DDKatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DDKatch/subscriptions","organizations_url":"https://api.github.com/users/DDKatch/orgs","repos_url":"https://api.github.com/users/DDKatch/repos","events_url":"https://api.github.com/users/DDKatch/events{/privacy}","received_events_url":"https://api.github.com/users/DDKatch/received_events","type":"User","site_admin":false},"body":"В блок ты передаешь переменную `link`, массив в таком случае должен называться `links` или `page_links`. Примени это правило ко всему коду.","created_at":"2017-10-26T15:05:26Z","updated_at":"2017-10-26T15:35:23Z","html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/624#discussion_r147171667","pull_request_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/147171667"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/624#discussion_r147171667"},"pull_request":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624"}}},"pull_request":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624","id":148004051,"html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/624","diff_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/624.diff","patch_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/624.patch","issue_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/624","number":624,"state":"open","locked":false,"title":"Added homework 2","user":{"login":"vol6tmetr","id":22430207,"avatar_url":"https://avatars0.githubusercontent.com/u/22430207?v=4","gravatar_id":"","url":"https://api.github.com/users/vol6tmetr","html_url":"https://github.com/vol6tmetr","followers_url":"https://api.github.com/users/vol6tmetr/followers","following_url":"https://api.github.com/users/vol6tmetr/following{/other_user}","gists_url":"https://api.github.com/users/vol6tmetr/gists{/gist_id}","starred_url":"https://api.github.com/users/vol6tmetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vol6tmetr/subscriptions","organizations_url":"https://api.github.com/users/vol6tmetr/orgs","repos_url":"https://api.github.com/users/vol6tmetr/repos","events_url":"https://api.github.com/users/vol6tmetr/events{/privacy}","received_events_url":"https://api.github.com/users/vol6tmetr/received_events","type":"User","site_admin":false},"body":"## Фамилия Имя\r\nЕкимцов Петр\r\n\r\n## Email\r\nmythbusterpeter@gmail.com\r\n\r\n## Номер домашнего задания\r\n2\r\n\r\n## Ссылка на видео с демо работы\r\nhttps://www.youtube.com/watch?v=rX_iH_8fJhw\r\n\r\n## Комментарии\r\nСделал 1.5 задания. Выводит все ссылки и большую часть текстов, где формат одинаковый. Также выводит тексты по имени, но не считает количество побед и поражений. Остальное буду понемногу доделывать.\r\nUpdate. Сделал все задания, выводит тексты с одинаковым форматом, выводит тексты по имени и критерию, считает количество побед и поражений. Тольо работает крайне медленно.","created_at":"2017-10-22T17:30:10Z","updated_at":"2017-10-26T15:35:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d61ab519af04e770b26ba603e7eebe296b0bef58","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624/commits","review_comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624/comments","review_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/624/comments","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/9301b444c3a2d28390c3d9d8ef42713c30158191","head":{"label":"vol6tmetr:homework-2","ref":"homework-2","sha":"9301b444c3a2d28390c3d9d8ef42713c30158191","user":{"login":"vol6tmetr","id":22430207,"avatar_url":"https://avatars0.githubusercontent.com/u/22430207?v=4","gravatar_id":"","url":"https://api.github.com/users/vol6tmetr","html_url":"https://github.com/vol6tmetr","followers_url":"https://api.github.com/users/vol6tmetr/followers","following_url":"https://api.github.com/users/vol6tmetr/following{/other_user}","gists_url":"https://api.github.com/users/vol6tmetr/gists{/gist_id}","starred_url":"https://api.github.com/users/vol6tmetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vol6tmetr/subscriptions","organizations_url":"https://api.github.com/users/vol6tmetr/orgs","repos_url":"https://api.github.com/users/vol6tmetr/repos","events_url":"https://api.github.com/users/vol6tmetr/events{/privacy}","received_events_url":"https://api.github.com/users/vol6tmetr/received_events","type":"User","site_admin":false},"repo":{"id":106580665,"name":"bsuir-courses","full_name":"vol6tmetr/bsuir-courses","owner":{"login":"vol6tmetr","id":22430207,"avatar_url":"https://avatars0.githubusercontent.com/u/22430207?v=4","gravatar_id":"","url":"https://api.github.com/users/vol6tmetr","html_url":"https://github.com/vol6tmetr","followers_url":"https://api.github.com/users/vol6tmetr/followers","following_url":"https://api.github.com/users/vol6tmetr/following{/other_user}","gists_url":"https://api.github.com/users/vol6tmetr/gists{/gist_id}","starred_url":"https://api.github.com/users/vol6tmetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vol6tmetr/subscriptions","organizations_url":"https://api.github.com/users/vol6tmetr/orgs","repos_url":"https://api.github.com/users/vol6tmetr/repos","events_url":"https://api.github.com/users/vol6tmetr/events{/privacy}","received_events_url":"https://api.github.com/users/vol6tmetr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vol6tmetr/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":true,"url":"https://api.github.com/repos/vol6tmetr/bsuir-courses","forks_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/forks","keys_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/events","assignees_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/merges","archive_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/releases{/id}","deployments_url":"https://api.github.com/repos/vol6tmetr/bsuir-courses/deployments","created_at":"2017-10-11T16:32:57Z","updated_at":"2017-10-11T16:33:00Z","pushed_at":"2017-10-23T10:04:23Z","git_url":"git://github.com/vol6tmetr/bsuir-courses.git","ssh_url":"git@github.com:vol6tmetr/bsuir-courses.git","clone_url":"https://github.com/vol6tmetr/bsuir-courses.git","svn_url":"https://github.com/vol6tmetr/bsuir-courses","homepage":null,"size":14498,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubyroidlabs:master","ref":"master","sha":"80330cc74f36a98bbb5d125225a21bfe1de915c1","user":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars1.githubusercontent.com/u/5137565?v=4","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":14405320,"name":"bsuir-courses","full_name":"rubyroidlabs/bsuir-courses","owner":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars1.githubusercontent.com/u/5137565?v=4","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyroidlabs/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":false,"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses","forks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/forks","keys_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/events","assignees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/merges","archive_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/releases{/id}","deployments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/deployments","created_at":"2013-11-14T19:55:12Z","updated_at":"2017-10-23T16:01:22Z","pushed_at":"2017-10-26T15:34:53Z","git_url":"git://github.com/rubyroidlabs/bsuir-courses.git","ssh_url":"git@github.com:rubyroidlabs/bsuir-courses.git","clone_url":"https://github.com/rubyroidlabs/bsuir-courses.git","svn_url":"https://github.com/rubyroidlabs/bsuir-courses","homepage":null,"size":14709,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"archived":false,"open_issues_count":77,"forks":215,"open_issues":77,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/624"},"issue":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/624"},"comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/624/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/624/commits"},"statuses":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/9301b444c3a2d28390c3d9d8ef42713c30158191"}},"author_association":"NONE"}}
{"actor":{"display_login":"DDKatch"}}