{"action":"created","comment":{"url":"https://api.github.com/repos/zilON/learn/pulls/comments/27343837","id":27343837,"diff_hunk":"@@ -5,3 +5,47 @@\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+Card.destroy_all\n+\n+page = Nokogiri::HTML(open (\"http://www.languagedaily.com/learn-german/vocabulary/common-german-words/\"))\n+\n+page.css('.jsn-article-content > table > tbody > tr').each do |row|\n+  de = row.css('td:nth-child(2)')\n+  en = row.css('td:nth-child(3)')\n+  Card.create(original_text: de.text, translated_text: en.text)\n+end\n+puts \"Loading data from 1 page complite\"\n+\n+page = Nokogiri::HTML(open (\"http://www.languagedaily.com/learn-german/vocabulary/most-common-german-words-2\"))\n+\n+page.css('.jsn-article-content > table > tbody > tr').each do |row|","path":"db/seeds.rb","position":21,"original_position":21,"commit_id":"00065ff6bbee34c4047bf1b7354aebbaf17407fd","original_commit_id":"00065ff6bbee34c4047bf1b7354aebbaf17407fd","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-03-28T09:59:59Z","updated_at":"2015-03-28T09:59:59Z","html_url":"https://github.com/zilON/learn/pull/6#discussion_r27343837","pull_request_url":"https://api.github.com/repos/zilON/learn/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/zilON/learn/pulls/comments/27343837"},"html":{"href":"https://github.com/zilON/learn/pull/6#discussion_r27343837"},"pull_request":{"href":"https://api.github.com/repos/zilON/learn/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/zilON/learn/pulls/6","id":32162226,"html_url":"https://github.com/zilON/learn/pull/6","diff_url":"https://github.com/zilON/learn/pull/6.diff","patch_url":"https://github.com/zilON/learn/pull/6.patch","issue_url":"https://api.github.com/repos/zilON/learn/issues/6","number":6,"state":"open","locked":false,"title":"Seeds and nokogiri","user":{"login":"zilON","id":882487,"avatar_url":"https://avatars.githubusercontent.com/u/882487?v=3","gravatar_id":"","url":"https://api.github.com/users/zilON","html_url":"https://github.com/zilON","followers_url":"https://api.github.com/users/zilON/followers","following_url":"https://api.github.com/users/zilON/following{/other_user}","gists_url":"https://api.github.com/users/zilON/gists{/gist_id}","starred_url":"https://api.github.com/users/zilON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilON/subscriptions","organizations_url":"https://api.github.com/users/zilON/orgs","repos_url":"https://api.github.com/users/zilON/repos","events_url":"https://api.github.com/users/zilON/events{/privacy}","received_events_url":"https://api.github.com/users/zilON/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-28T09:59:55Z","updated_at":"2015-03-28T09:59:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47423fa6f7b7d4eefd52044e5a23b67671ab518d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zilON/learn/pulls/6/commits","review_comments_url":"https://api.github.com/repos/zilON/learn/pulls/6/comments","review_comment_url":"https://api.github.com/repos/zilON/learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zilON/learn/issues/6/comments","statuses_url":"https://api.github.com/repos/zilON/learn/statuses/00065ff6bbee34c4047bf1b7354aebbaf17407fd","head":{"label":"zilON:seeds-and-nokogiri","ref":"seeds-and-nokogiri","sha":"00065ff6bbee34c4047bf1b7354aebbaf17407fd","user":{"login":"zilON","id":882487,"avatar_url":"https://avatars.githubusercontent.com/u/882487?v=3","gravatar_id":"","url":"https://api.github.com/users/zilON","html_url":"https://github.com/zilON","followers_url":"https://api.github.com/users/zilON/followers","following_url":"https://api.github.com/users/zilON/following{/other_user}","gists_url":"https://api.github.com/users/zilON/gists{/gist_id}","starred_url":"https://api.github.com/users/zilON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilON/subscriptions","organizations_url":"https://api.github.com/users/zilON/orgs","repos_url":"https://api.github.com/users/zilON/repos","events_url":"https://api.github.com/users/zilON/events{/privacy}","received_events_url":"https://api.github.com/users/zilON/received_events","type":"User","site_admin":false},"repo":{"id":32719338,"name":"learn","full_name":"zilON/learn","owner":{"login":"zilON","id":882487,"avatar_url":"https://avatars.githubusercontent.com/u/882487?v=3","gravatar_id":"","url":"https://api.github.com/users/zilON","html_url":"https://github.com/zilON","followers_url":"https://api.github.com/users/zilON/followers","following_url":"https://api.github.com/users/zilON/following{/other_user}","gists_url":"https://api.github.com/users/zilON/gists{/gist_id}","starred_url":"https://api.github.com/users/zilON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilON/subscriptions","organizations_url":"https://api.github.com/users/zilON/orgs","repos_url":"https://api.github.com/users/zilON/repos","events_url":"https://api.github.com/users/zilON/events{/privacy}","received_events_url":"https://api.github.com/users/zilON/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zilON/learn","description":"learn","fork":false,"url":"https://api.github.com/repos/zilON/learn","forks_url":"https://api.github.com/repos/zilON/learn/forks","keys_url":"https://api.github.com/repos/zilON/learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zilON/learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zilON/learn/teams","hooks_url":"https://api.github.com/repos/zilON/learn/hooks","issue_events_url":"https://api.github.com/repos/zilON/learn/issues/events{/number}","events_url":"https://api.github.com/repos/zilON/learn/events","assignees_url":"https://api.github.com/repos/zilON/learn/assignees{/user}","branches_url":"https://api.github.com/repos/zilON/learn/branches{/branch}","tags_url":"https://api.github.com/repos/zilON/learn/tags","blobs_url":"https://api.github.com/repos/zilON/learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zilON/learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zilON/learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/zilON/learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zilON/learn/statuses/{sha}","languages_url":"https://api.github.com/repos/zilON/learn/languages","stargazers_url":"https://api.github.com/repos/zilON/learn/stargazers","contributors_url":"https://api.github.com/repos/zilON/learn/contributors","subscribers_url":"https://api.github.com/repos/zilON/learn/subscribers","subscription_url":"https://api.github.com/repos/zilON/learn/subscription","commits_url":"https://api.github.com/repos/zilON/learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/zilON/learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/zilON/learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/zilON/learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/zilON/learn/contents/{+path}","compare_url":"https://api.github.com/repos/zilON/learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zilON/learn/merges","archive_url":"https://api.github.com/repos/zilON/learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zilON/learn/downloads","issues_url":"https://api.github.com/repos/zilON/learn/issues{/number}","pulls_url":"https://api.github.com/repos/zilON/learn/pulls{/number}","milestones_url":"https://api.github.com/repos/zilON/learn/milestones{/number}","notifications_url":"https://api.github.com/repos/zilON/learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zilON/learn/labels{/name}","releases_url":"https://api.github.com/repos/zilON/learn/releases{/id}","created_at":"2015-03-23T08:22:20Z","updated_at":"2015-03-27T10:55:26Z","pushed_at":"2015-03-28T09:59:56Z","git_url":"git://github.com/zilON/learn.git","ssh_url":"git@github.com:zilON/learn.git","clone_url":"https://github.com/zilON/learn.git","svn_url":"https://github.com/zilON/learn","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":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"zilON:master","ref":"master","sha":"850ff3c3548ddfdb2e4280bed1f5cc60d7ac3d27","user":{"login":"zilON","id":882487,"avatar_url":"https://avatars.githubusercontent.com/u/882487?v=3","gravatar_id":"","url":"https://api.github.com/users/zilON","html_url":"https://github.com/zilON","followers_url":"https://api.github.com/users/zilON/followers","following_url":"https://api.github.com/users/zilON/following{/other_user}","gists_url":"https://api.github.com/users/zilON/gists{/gist_id}","starred_url":"https://api.github.com/users/zilON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilON/subscriptions","organizations_url":"https://api.github.com/users/zilON/orgs","repos_url":"https://api.github.com/users/zilON/repos","events_url":"https://api.github.com/users/zilON/events{/privacy}","received_events_url":"https://api.github.com/users/zilON/received_events","type":"User","site_admin":false},"repo":{"id":32719338,"name":"learn","full_name":"zilON/learn","owner":{"login":"zilON","id":882487,"avatar_url":"https://avatars.githubusercontent.com/u/882487?v=3","gravatar_id":"","url":"https://api.github.com/users/zilON","html_url":"https://github.com/zilON","followers_url":"https://api.github.com/users/zilON/followers","following_url":"https://api.github.com/users/zilON/following{/other_user}","gists_url":"https://api.github.com/users/zilON/gists{/gist_id}","starred_url":"https://api.github.com/users/zilON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilON/subscriptions","organizations_url":"https://api.github.com/users/zilON/orgs","repos_url":"https://api.github.com/users/zilON/repos","events_url":"https://api.github.com/users/zilON/events{/privacy}","received_events_url":"https://api.github.com/users/zilON/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zilON/learn","description":"learn","fork":false,"url":"https://api.github.com/repos/zilON/learn","forks_url":"https://api.github.com/repos/zilON/learn/forks","keys_url":"https://api.github.com/repos/zilON/learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zilON/learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zilON/learn/teams","hooks_url":"https://api.github.com/repos/zilON/learn/hooks","issue_events_url":"https://api.github.com/repos/zilON/learn/issues/events{/number}","events_url":"https://api.github.com/repos/zilON/learn/events","assignees_url":"https://api.github.com/repos/zilON/learn/assignees{/user}","branches_url":"https://api.github.com/repos/zilON/learn/branches{/branch}","tags_url":"https://api.github.com/repos/zilON/learn/tags","blobs_url":"https://api.github.com/repos/zilON/learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zilON/learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zilON/learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/zilON/learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zilON/learn/statuses/{sha}","languages_url":"https://api.github.com/repos/zilON/learn/languages","stargazers_url":"https://api.github.com/repos/zilON/learn/stargazers","contributors_url":"https://api.github.com/repos/zilON/learn/contributors","subscribers_url":"https://api.github.com/repos/zilON/learn/subscribers","subscription_url":"https://api.github.com/repos/zilON/learn/subscription","commits_url":"https://api.github.com/repos/zilON/learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/zilON/learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/zilON/learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/zilON/learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/zilON/learn/contents/{+path}","compare_url":"https://api.github.com/repos/zilON/learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zilON/learn/merges","archive_url":"https://api.github.com/repos/zilON/learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zilON/learn/downloads","issues_url":"https://api.github.com/repos/zilON/learn/issues{/number}","pulls_url":"https://api.github.com/repos/zilON/learn/pulls{/number}","milestones_url":"https://api.github.com/repos/zilON/learn/milestones{/number}","notifications_url":"https://api.github.com/repos/zilON/learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zilON/learn/labels{/name}","releases_url":"https://api.github.com/repos/zilON/learn/releases{/id}","created_at":"2015-03-23T08:22:20Z","updated_at":"2015-03-27T10:55:26Z","pushed_at":"2015-03-28T09:59:56Z","git_url":"git://github.com/zilON/learn.git","ssh_url":"git@github.com:zilON/learn.git","clone_url":"https://github.com/zilON/learn.git","svn_url":"https://github.com/zilON/learn","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":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zilON/learn/pulls/6"},"html":{"href":"https://github.com/zilON/learn/pull/6"},"issue":{"href":"https://api.github.com/repos/zilON/learn/issues/6"},"comments":{"href":"https://api.github.com/repos/zilON/learn/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/zilON/learn/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/zilON/learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zilON/learn/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/zilON/learn/statuses/00065ff6bbee34c4047bf1b7354aebbaf17407fd"}}}}