{"action":"created","comment":{"url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/comments/31046433","id":31046433,"diff_hunk":"@@ -0,0 +1,14 @@\n+module SherlockHomes\n+  class Scraper\n+\n+    def self.restart_phantomjs","path":"lib/sherlock_homes/scraper.rb","position":4,"original_position":4,"commit_id":"b5452fb48923269cc3d689eccc4edfeb9205c5de","original_commit_id":"b5452fb48923269cc3d689eccc4edfeb9205c5de","user":{"login":"safeforge","id":255455,"avatar_url":"https://avatars.githubusercontent.com/u/255455?v=3","gravatar_id":"","url":"https://api.github.com/users/safeforge","html_url":"https://github.com/safeforge","followers_url":"https://api.github.com/users/safeforge/followers","following_url":"https://api.github.com/users/safeforge/following{/other_user}","gists_url":"https://api.github.com/users/safeforge/gists{/gist_id}","starred_url":"https://api.github.com/users/safeforge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safeforge/subscriptions","organizations_url":"https://api.github.com/users/safeforge/orgs","repos_url":"https://api.github.com/users/safeforge/repos","events_url":"https://api.github.com/users/safeforge/events{/privacy}","received_events_url":"https://api.github.com/users/safeforge/received_events","type":"User","site_admin":false},"body":"when a multiple sites are scraped phantom need to be restarted. e.g.\r\n\r\n```ruby\r\ngoogle_link = Google.search(\"#{address} site:redfin.com\")\r\nScraper.restart_phantomjs\r\nredfin_result = Redfin.find(google_link)\r\nScraper.restart_phantomjs\r\ngoogle_link = Google.search(\"#{address} site:trulia.com\")\r\nScraper.restart_phantomjs\r\ntrulia_result = Trulia.find(address)\r\n```","created_at":"2015-05-26T15:30:48Z","updated_at":"2015-05-26T15:30:48Z","html_url":"https://github.com/jeffdeville/sherlock_homes/pull/10#discussion_r31046433","pull_request_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/comments/31046433"},"html":{"href":"https://github.com/jeffdeville/sherlock_homes/pull/10#discussion_r31046433"},"pull_request":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10","id":36207091,"html_url":"https://github.com/jeffdeville/sherlock_homes/pull/10","diff_url":"https://github.com/jeffdeville/sherlock_homes/pull/10.diff","patch_url":"https://github.com/jeffdeville/sherlock_homes/pull/10.patch","issue_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/10","number":10,"state":"open","locked":false,"title":"Site prism","user":{"login":"safeforge","id":255455,"avatar_url":"https://avatars.githubusercontent.com/u/255455?v=3","gravatar_id":"","url":"https://api.github.com/users/safeforge","html_url":"https://github.com/safeforge","followers_url":"https://api.github.com/users/safeforge/followers","following_url":"https://api.github.com/users/safeforge/following{/other_user}","gists_url":"https://api.github.com/users/safeforge/gists{/gist_id}","starred_url":"https://api.github.com/users/safeforge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safeforge/subscriptions","organizations_url":"https://api.github.com/users/safeforge/orgs","repos_url":"https://api.github.com/users/safeforge/repos","events_url":"https://api.github.com/users/safeforge/events{/privacy}","received_events_url":"https://api.github.com/users/safeforge/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-26T14:21:06Z","updated_at":"2015-05-26T15:30:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f4ab3d5e4ab4f5115860d5409f4a081e14d97c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10/commits","review_comments_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10/comments","review_comment_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/10/comments","statuses_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/statuses/b5452fb48923269cc3d689eccc4edfeb9205c5de","head":{"label":"jeffdeville:site_prism","ref":"site_prism","sha":"b5452fb48923269cc3d689eccc4edfeb9205c5de","user":{"login":"jeffdeville","id":131664,"avatar_url":"https://avatars.githubusercontent.com/u/131664?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffdeville","html_url":"https://github.com/jeffdeville","followers_url":"https://api.github.com/users/jeffdeville/followers","following_url":"https://api.github.com/users/jeffdeville/following{/other_user}","gists_url":"https://api.github.com/users/jeffdeville/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffdeville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffdeville/subscriptions","organizations_url":"https://api.github.com/users/jeffdeville/orgs","repos_url":"https://api.github.com/users/jeffdeville/repos","events_url":"https://api.github.com/users/jeffdeville/events{/privacy}","received_events_url":"https://api.github.com/users/jeffdeville/received_events","type":"User","site_admin":false},"repo":{"id":35157675,"name":"sherlock_homes","full_name":"jeffdeville/sherlock_homes","owner":{"login":"jeffdeville","id":131664,"avatar_url":"https://avatars.githubusercontent.com/u/131664?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffdeville","html_url":"https://github.com/jeffdeville","followers_url":"https://api.github.com/users/jeffdeville/followers","following_url":"https://api.github.com/users/jeffdeville/following{/other_user}","gists_url":"https://api.github.com/users/jeffdeville/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffdeville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffdeville/subscriptions","organizations_url":"https://api.github.com/users/jeffdeville/orgs","repos_url":"https://api.github.com/users/jeffdeville/repos","events_url":"https://api.github.com/users/jeffdeville/events{/privacy}","received_events_url":"https://api.github.com/users/jeffdeville/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffdeville/sherlock_homes","description":"","fork":false,"url":"https://api.github.com/repos/jeffdeville/sherlock_homes","forks_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/forks","keys_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/teams","hooks_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/hooks","issue_events_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/events{/number}","events_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/events","assignees_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/assignees{/user}","branches_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/branches{/branch}","tags_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/tags","blobs_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/languages","stargazers_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/stargazers","contributors_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/contributors","subscribers_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/subscribers","subscription_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/subscription","commits_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/contents/{+path}","compare_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/merges","archive_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/downloads","issues_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues{/number}","pulls_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/labels{/name}","releases_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/releases{/id}","created_at":"2015-05-06T12:40:56Z","updated_at":"2015-05-08T14:09:18Z","pushed_at":"2015-05-26T14:21:07Z","git_url":"git://github.com/jeffdeville/sherlock_homes.git","ssh_url":"git@github.com:jeffdeville/sherlock_homes.git","clone_url":"https://github.com/jeffdeville/sherlock_homes.git","svn_url":"https://github.com/jeffdeville/sherlock_homes","homepage":null,"size":317,"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":"jeffdeville:master","ref":"master","sha":"c6e17859e25360edbfc0b42065dfcb18829b350d","user":{"login":"jeffdeville","id":131664,"avatar_url":"https://avatars.githubusercontent.com/u/131664?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffdeville","html_url":"https://github.com/jeffdeville","followers_url":"https://api.github.com/users/jeffdeville/followers","following_url":"https://api.github.com/users/jeffdeville/following{/other_user}","gists_url":"https://api.github.com/users/jeffdeville/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffdeville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffdeville/subscriptions","organizations_url":"https://api.github.com/users/jeffdeville/orgs","repos_url":"https://api.github.com/users/jeffdeville/repos","events_url":"https://api.github.com/users/jeffdeville/events{/privacy}","received_events_url":"https://api.github.com/users/jeffdeville/received_events","type":"User","site_admin":false},"repo":{"id":35157675,"name":"sherlock_homes","full_name":"jeffdeville/sherlock_homes","owner":{"login":"jeffdeville","id":131664,"avatar_url":"https://avatars.githubusercontent.com/u/131664?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffdeville","html_url":"https://github.com/jeffdeville","followers_url":"https://api.github.com/users/jeffdeville/followers","following_url":"https://api.github.com/users/jeffdeville/following{/other_user}","gists_url":"https://api.github.com/users/jeffdeville/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffdeville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffdeville/subscriptions","organizations_url":"https://api.github.com/users/jeffdeville/orgs","repos_url":"https://api.github.com/users/jeffdeville/repos","events_url":"https://api.github.com/users/jeffdeville/events{/privacy}","received_events_url":"https://api.github.com/users/jeffdeville/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffdeville/sherlock_homes","description":"","fork":false,"url":"https://api.github.com/repos/jeffdeville/sherlock_homes","forks_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/forks","keys_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/teams","hooks_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/hooks","issue_events_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/events{/number}","events_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/events","assignees_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/assignees{/user}","branches_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/branches{/branch}","tags_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/tags","blobs_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/languages","stargazers_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/stargazers","contributors_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/contributors","subscribers_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/subscribers","subscription_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/subscription","commits_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/contents/{+path}","compare_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/merges","archive_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/downloads","issues_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues{/number}","pulls_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/labels{/name}","releases_url":"https://api.github.com/repos/jeffdeville/sherlock_homes/releases{/id}","created_at":"2015-05-06T12:40:56Z","updated_at":"2015-05-08T14:09:18Z","pushed_at":"2015-05-26T14:21:07Z","git_url":"git://github.com/jeffdeville/sherlock_homes.git","ssh_url":"git@github.com:jeffdeville/sherlock_homes.git","clone_url":"https://github.com/jeffdeville/sherlock_homes.git","svn_url":"https://github.com/jeffdeville/sherlock_homes","homepage":null,"size":317,"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/jeffdeville/sherlock_homes/pulls/10"},"html":{"href":"https://github.com/jeffdeville/sherlock_homes/pull/10"},"issue":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/10"},"comments":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/jeffdeville/sherlock_homes/statuses/b5452fb48923269cc3d689eccc4edfeb9205c5de"}}}}