{"action":"created","comment":{"url":"https://api.github.com/repos/edenisn/flashcards/pulls/comments/39677134","id":39677134,"diff_hunk":"@@ -5,3 +5,26 @@\n #\n #   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])\n #   Mayor.create(name: 'Emanuel', city: cities.first)\n+\n+require 'nokogiri'\n+require 'open-uri'\n+\n+arr_original = [] # array for text (original_text[text])\n+arr_translated = [] # array for text (translated_text[text])\n+\n+PAGE_URL = \"http://www.languagedaily.com/learn-german/vocabulary/common-german-words\"\n+\n+page = Nokogiri::HTML(open(PAGE_URL))\n+\n+cards_original_text = page.css(\"table tr td.bigLetter\")\n+cards_original_text.each { |t| arr_original << t.text }\n+\n+cards_translated_text = page.css(\"table tr td.bigLetter + td\")\n+cards_translated_text.each { |t| arr_translated << t.text }\n+\n+cards_list = arr_original.zip(arr_translated) # cards_list = [ arr_original, arr_translated ]\n+\n+cards_list.each do |original, translate|\n+  Card.create(original_text: original, translated_text: translate, review_date: DateTime.now)","path":"db/seeds.rb","position":24,"original_position":24,"commit_id":"852e0959c6aa8b1a3dc08d96c6d42202affdca55","original_commit_id":"852e0959c6aa8b1a3dc08d96c6d42202affdca55","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [93/80]","created_at":"2015-09-16T19:57:21Z","updated_at":"2015-09-16T19:57:21Z","html_url":"https://github.com/edenisn/flashcards/pull/5#discussion_r39677134","pull_request_url":"https://api.github.com/repos/edenisn/flashcards/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/edenisn/flashcards/pulls/comments/39677134"},"html":{"href":"https://github.com/edenisn/flashcards/pull/5#discussion_r39677134"},"pull_request":{"href":"https://api.github.com/repos/edenisn/flashcards/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/edenisn/flashcards/pulls/5","id":45216775,"html_url":"https://github.com/edenisn/flashcards/pull/5","diff_url":"https://github.com/edenisn/flashcards/pull/5.diff","patch_url":"https://github.com/edenisn/flashcards/pull/5.patch","issue_url":"https://api.github.com/repos/edenisn/flashcards/issues/5","number":5,"state":"open","locked":false,"title":"add data to database with gem nokogiri and seeds.rb","user":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-16T19:57:16Z","updated_at":"2015-09-16T19:57:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56dd8ae630549c45308c8f823eda7cd626cbdeea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edenisn/flashcards/pulls/5/commits","review_comments_url":"https://api.github.com/repos/edenisn/flashcards/pulls/5/comments","review_comment_url":"https://api.github.com/repos/edenisn/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edenisn/flashcards/issues/5/comments","statuses_url":"https://api.github.com/repos/edenisn/flashcards/statuses/852e0959c6aa8b1a3dc08d96c6d42202affdca55","head":{"label":"edenisn:task-4","ref":"task-4","sha":"852e0959c6aa8b1a3dc08d96c6d42202affdca55","user":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"repo":{"id":42456025,"name":"flashcards","full_name":"edenisn/flashcards","owner":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edenisn/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/edenisn/flashcards","forks_url":"https://api.github.com/repos/edenisn/flashcards/forks","keys_url":"https://api.github.com/repos/edenisn/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edenisn/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edenisn/flashcards/teams","hooks_url":"https://api.github.com/repos/edenisn/flashcards/hooks","issue_events_url":"https://api.github.com/repos/edenisn/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/edenisn/flashcards/events","assignees_url":"https://api.github.com/repos/edenisn/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/edenisn/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/edenisn/flashcards/tags","blobs_url":"https://api.github.com/repos/edenisn/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edenisn/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edenisn/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/edenisn/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edenisn/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/edenisn/flashcards/languages","stargazers_url":"https://api.github.com/repos/edenisn/flashcards/stargazers","contributors_url":"https://api.github.com/repos/edenisn/flashcards/contributors","subscribers_url":"https://api.github.com/repos/edenisn/flashcards/subscribers","subscription_url":"https://api.github.com/repos/edenisn/flashcards/subscription","commits_url":"https://api.github.com/repos/edenisn/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/edenisn/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/edenisn/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/edenisn/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/edenisn/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/edenisn/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edenisn/flashcards/merges","archive_url":"https://api.github.com/repos/edenisn/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edenisn/flashcards/downloads","issues_url":"https://api.github.com/repos/edenisn/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/edenisn/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/edenisn/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/edenisn/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edenisn/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/edenisn/flashcards/releases{/id}","created_at":"2015-09-14T15:05:42Z","updated_at":"2015-09-14T15:18:07Z","pushed_at":"2015-09-16T19:57:16Z","git_url":"git://github.com/edenisn/flashcards.git","ssh_url":"git@github.com:edenisn/flashcards.git","clone_url":"https://github.com/edenisn/flashcards.git","svn_url":"https://github.com/edenisn/flashcards","homepage":null,"size":0,"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":"edenisn:master","ref":"master","sha":"7554167e659723dc45d8efd343ce32edc67fcbc6","user":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"repo":{"id":42456025,"name":"flashcards","full_name":"edenisn/flashcards","owner":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edenisn/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/edenisn/flashcards","forks_url":"https://api.github.com/repos/edenisn/flashcards/forks","keys_url":"https://api.github.com/repos/edenisn/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edenisn/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edenisn/flashcards/teams","hooks_url":"https://api.github.com/repos/edenisn/flashcards/hooks","issue_events_url":"https://api.github.com/repos/edenisn/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/edenisn/flashcards/events","assignees_url":"https://api.github.com/repos/edenisn/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/edenisn/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/edenisn/flashcards/tags","blobs_url":"https://api.github.com/repos/edenisn/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edenisn/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edenisn/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/edenisn/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edenisn/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/edenisn/flashcards/languages","stargazers_url":"https://api.github.com/repos/edenisn/flashcards/stargazers","contributors_url":"https://api.github.com/repos/edenisn/flashcards/contributors","subscribers_url":"https://api.github.com/repos/edenisn/flashcards/subscribers","subscription_url":"https://api.github.com/repos/edenisn/flashcards/subscription","commits_url":"https://api.github.com/repos/edenisn/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/edenisn/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/edenisn/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/edenisn/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/edenisn/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/edenisn/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edenisn/flashcards/merges","archive_url":"https://api.github.com/repos/edenisn/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edenisn/flashcards/downloads","issues_url":"https://api.github.com/repos/edenisn/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/edenisn/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/edenisn/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/edenisn/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edenisn/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/edenisn/flashcards/releases{/id}","created_at":"2015-09-14T15:05:42Z","updated_at":"2015-09-14T15:18:07Z","pushed_at":"2015-09-16T19:57:16Z","git_url":"git://github.com/edenisn/flashcards.git","ssh_url":"git@github.com:edenisn/flashcards.git","clone_url":"https://github.com/edenisn/flashcards.git","svn_url":"https://github.com/edenisn/flashcards","homepage":null,"size":0,"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/edenisn/flashcards/pulls/5"},"html":{"href":"https://github.com/edenisn/flashcards/pull/5"},"issue":{"href":"https://api.github.com/repos/edenisn/flashcards/issues/5"},"comments":{"href":"https://api.github.com/repos/edenisn/flashcards/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/edenisn/flashcards/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/edenisn/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edenisn/flashcards/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/edenisn/flashcards/statuses/852e0959c6aa8b1a3dc08d96c6d42202affdca55"}}}}