{"action":"created","comment":{"url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/comments/69701262","id":69701262,"diff_hunk":"@@ -0,0 +1,42 @@\n+require 'open-uri'\n+\n+class Import\n+  def self.run\n+    get_words_new(Nokogiri::HTML(open(\"http://www.languagedaily.com/learn-german/vocabulary/common-german-words\")))\n+    get_words_new(Nokogiri::HTML(open(\"http://www.languagedaily.com/learn-german/vocabulary/most-common-german-words-2\")))\n+    loop_through_pages\n+  end\n+end\n+\n+def get_words_new(page)\n+  words = []\n+  w_id = 0\n+  page.css('tr.rowA, tr.rowB').each do |j|\n+    puts words << \n+    { original_text: j.css('td[2]').text,\n+      translated_text: j.css('td[3]').text\n+    }\n+    puts @card = Card.create(\n+      original_text: words[w_id][:original_text],\n+      translated_text: words[w_id][:translated_text]\n+    )\n+    w_id += 1\n+  end\n+end\n+\n+def loop_through_pages\n+p_id = 2","path":"lib/import.rb","position":28,"original_position":28,"commit_id":"8c98b0398bc3492d7d618f9bc14f6dd44a5728e7","original_commit_id":"8c98b0398bc3492d7d618f9bc14f6dd44a5728e7","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Use 2 (not 0) spaces for indentation.","created_at":"2016-07-06T09:36:14Z","updated_at":"2016-07-06T09:36:14Z","html_url":"https://github.com/PeterChudinov/flashcards/pull/4#discussion_r69701262","pull_request_url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/comments/69701262"},"html":{"href":"https://github.com/PeterChudinov/flashcards/pull/4#discussion_r69701262"},"pull_request":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4","id":76093738,"html_url":"https://github.com/PeterChudinov/flashcards/pull/4","diff_url":"https://github.com/PeterChudinov/flashcards/pull/4.diff","patch_url":"https://github.com/PeterChudinov/flashcards/pull/4.patch","issue_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues/4","number":4,"state":"open","locked":false,"title":"Assignment4","user":{"login":"PeterChudinov","id":4057445,"avatar_url":"https://avatars.githubusercontent.com/u/4057445?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterChudinov","html_url":"https://github.com/PeterChudinov","followers_url":"https://api.github.com/users/PeterChudinov/followers","following_url":"https://api.github.com/users/PeterChudinov/following{/other_user}","gists_url":"https://api.github.com/users/PeterChudinov/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterChudinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterChudinov/subscriptions","organizations_url":"https://api.github.com/users/PeterChudinov/orgs","repos_url":"https://api.github.com/users/PeterChudinov/repos","events_url":"https://api.github.com/users/PeterChudinov/events{/privacy}","received_events_url":"https://api.github.com/users/PeterChudinov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-03T17:11:14Z","updated_at":"2016-07-06T09:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a86f265808173fb326a78ec0c911a93b020b2695","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4/commits","review_comments_url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4/comments","review_comment_url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues/4/comments","statuses_url":"https://api.github.com/repos/PeterChudinov/flashcards/statuses/8c98b0398bc3492d7d618f9bc14f6dd44a5728e7","head":{"label":"PeterChudinov:assignment4_2","ref":"assignment4_2","sha":"8c98b0398bc3492d7d618f9bc14f6dd44a5728e7","user":{"login":"PeterChudinov","id":4057445,"avatar_url":"https://avatars.githubusercontent.com/u/4057445?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterChudinov","html_url":"https://github.com/PeterChudinov","followers_url":"https://api.github.com/users/PeterChudinov/followers","following_url":"https://api.github.com/users/PeterChudinov/following{/other_user}","gists_url":"https://api.github.com/users/PeterChudinov/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterChudinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterChudinov/subscriptions","organizations_url":"https://api.github.com/users/PeterChudinov/orgs","repos_url":"https://api.github.com/users/PeterChudinov/repos","events_url":"https://api.github.com/users/PeterChudinov/events{/privacy}","received_events_url":"https://api.github.com/users/PeterChudinov/received_events","type":"User","site_admin":false},"repo":{"id":61526381,"name":"flashcards","full_name":"PeterChudinov/flashcards","owner":{"login":"PeterChudinov","id":4057445,"avatar_url":"https://avatars.githubusercontent.com/u/4057445?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterChudinov","html_url":"https://github.com/PeterChudinov","followers_url":"https://api.github.com/users/PeterChudinov/followers","following_url":"https://api.github.com/users/PeterChudinov/following{/other_user}","gists_url":"https://api.github.com/users/PeterChudinov/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterChudinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterChudinov/subscriptions","organizations_url":"https://api.github.com/users/PeterChudinov/orgs","repos_url":"https://api.github.com/users/PeterChudinov/repos","events_url":"https://api.github.com/users/PeterChudinov/events{/privacy}","received_events_url":"https://api.github.com/users/PeterChudinov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterChudinov/flashcards","description":"flashcards","fork":false,"url":"https://api.github.com/repos/PeterChudinov/flashcards","forks_url":"https://api.github.com/repos/PeterChudinov/flashcards/forks","keys_url":"https://api.github.com/repos/PeterChudinov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterChudinov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterChudinov/flashcards/teams","hooks_url":"https://api.github.com/repos/PeterChudinov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/PeterChudinov/flashcards/events","assignees_url":"https://api.github.com/repos/PeterChudinov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/PeterChudinov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/PeterChudinov/flashcards/tags","blobs_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterChudinov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterChudinov/flashcards/languages","stargazers_url":"https://api.github.com/repos/PeterChudinov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/PeterChudinov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/PeterChudinov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/PeterChudinov/flashcards/subscription","commits_url":"https://api.github.com/repos/PeterChudinov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterChudinov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterChudinov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/PeterChudinov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterChudinov/flashcards/merges","archive_url":"https://api.github.com/repos/PeterChudinov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterChudinov/flashcards/downloads","issues_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterChudinov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterChudinov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterChudinov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/PeterChudinov/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/PeterChudinov/flashcards/deployments","created_at":"2016-06-20T07:40:31Z","updated_at":"2016-06-21T09:27:04Z","pushed_at":"2016-07-06T09:36:10Z","git_url":"git://github.com/PeterChudinov/flashcards.git","ssh_url":"git@github.com:PeterChudinov/flashcards.git","clone_url":"https://github.com/PeterChudinov/flashcards.git","svn_url":"https://github.com/PeterChudinov/flashcards","homepage":null,"size":238,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PeterChudinov:master","ref":"master","sha":"5f5e84a6cd90a6bb17a1c6c6a6f5b7ce07978725","user":{"login":"PeterChudinov","id":4057445,"avatar_url":"https://avatars.githubusercontent.com/u/4057445?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterChudinov","html_url":"https://github.com/PeterChudinov","followers_url":"https://api.github.com/users/PeterChudinov/followers","following_url":"https://api.github.com/users/PeterChudinov/following{/other_user}","gists_url":"https://api.github.com/users/PeterChudinov/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterChudinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterChudinov/subscriptions","organizations_url":"https://api.github.com/users/PeterChudinov/orgs","repos_url":"https://api.github.com/users/PeterChudinov/repos","events_url":"https://api.github.com/users/PeterChudinov/events{/privacy}","received_events_url":"https://api.github.com/users/PeterChudinov/received_events","type":"User","site_admin":false},"repo":{"id":61526381,"name":"flashcards","full_name":"PeterChudinov/flashcards","owner":{"login":"PeterChudinov","id":4057445,"avatar_url":"https://avatars.githubusercontent.com/u/4057445?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterChudinov","html_url":"https://github.com/PeterChudinov","followers_url":"https://api.github.com/users/PeterChudinov/followers","following_url":"https://api.github.com/users/PeterChudinov/following{/other_user}","gists_url":"https://api.github.com/users/PeterChudinov/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterChudinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterChudinov/subscriptions","organizations_url":"https://api.github.com/users/PeterChudinov/orgs","repos_url":"https://api.github.com/users/PeterChudinov/repos","events_url":"https://api.github.com/users/PeterChudinov/events{/privacy}","received_events_url":"https://api.github.com/users/PeterChudinov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PeterChudinov/flashcards","description":"flashcards","fork":false,"url":"https://api.github.com/repos/PeterChudinov/flashcards","forks_url":"https://api.github.com/repos/PeterChudinov/flashcards/forks","keys_url":"https://api.github.com/repos/PeterChudinov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterChudinov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterChudinov/flashcards/teams","hooks_url":"https://api.github.com/repos/PeterChudinov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/PeterChudinov/flashcards/events","assignees_url":"https://api.github.com/repos/PeterChudinov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/PeterChudinov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/PeterChudinov/flashcards/tags","blobs_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterChudinov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterChudinov/flashcards/languages","stargazers_url":"https://api.github.com/repos/PeterChudinov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/PeterChudinov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/PeterChudinov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/PeterChudinov/flashcards/subscription","commits_url":"https://api.github.com/repos/PeterChudinov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterChudinov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterChudinov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterChudinov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/PeterChudinov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterChudinov/flashcards/merges","archive_url":"https://api.github.com/repos/PeterChudinov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterChudinov/flashcards/downloads","issues_url":"https://api.github.com/repos/PeterChudinov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/PeterChudinov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterChudinov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterChudinov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterChudinov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/PeterChudinov/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/PeterChudinov/flashcards/deployments","created_at":"2016-06-20T07:40:31Z","updated_at":"2016-06-21T09:27:04Z","pushed_at":"2016-07-06T09:36:10Z","git_url":"git://github.com/PeterChudinov/flashcards.git","ssh_url":"git@github.com:PeterChudinov/flashcards.git","clone_url":"https://github.com/PeterChudinov/flashcards.git","svn_url":"https://github.com/PeterChudinov/flashcards","homepage":null,"size":238,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4"},"html":{"href":"https://github.com/PeterChudinov/flashcards/pull/4"},"issue":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/issues/4"},"comments":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/PeterChudinov/flashcards/statuses/8c98b0398bc3492d7d618f9bc14f6dd44a5728e7"}}}}
{"actor":{"display_login":"houndci-bot"}}