{"action":"created","comment":{"url":"https://api.github.com/repos/zotero/translators/pulls/comments/59129445","id":59129445,"diff_hunk":"@@ -0,0 +1,56 @@\n+function detectWeb(doc, url) { return FW.detectWeb(doc, url); }\n+function doWeb(doc, url) { return FW.doWeb(doc, url); }\n+\n+/*\n+1911 Encyclopedia Britannica Translator\n+Copyright (C) 2015 Jonathan Meyer\n+\n+This program is free software: you can redistribute it and/or modify\n+it under the terms of the GNU General Public License as published by\n+the Free Software Foundation, either version 3 of the License, or\n+(at your option) any later version.\n+\n+This program is distributed in the hope that it will be useful,\n+but WITHOUT ANY WARRANTY; without even the implied warranty of\n+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+GNU General Public License for more details.\n+\n+You should have received a copy of the GNU General Public License\n+along with this program. If not, see <http://www.gnu.org/licenses/>.-\n+*/\n+\n+\n+FW.Scraper({ \n+\titemType : 'encyclopediaArticle',\n+\tencyclopediaTitle : \"1911 Encyclopædia Britannica\",\n+\tdetect : FW.Url().match(/(encyclopedia\\.jrank\\.org\\/).{7}(\\/).+/),\n+\ttitle : FW.Xpath('//html/body/div[1]/div[3]/h1').text(),\n+\tattachments : [{\n+\t\turl : FW.Url(),\n+\t\ttitle : \"Jrank Snapshot\",\n+\t\ttype : \"text/html\"\n+\t\t}],\n+\tabstractNote : FW.Xpath('//html/body/div[1]/blockquote[1]/b').text().trim(),","path":"1911 Encyclopedia Britannica.js","position":33,"original_position":33,"commit_id":"c925f29aa75043b30dd9aceb6ae422e9da1e8792","original_commit_id":"c925f29aa75043b30dd9aceb6ae422e9da1e8792","user":{"login":"aurimasv","id":1381759,"avatar_url":"https://avatars.githubusercontent.com/u/1381759?v=3","gravatar_id":"","url":"https://api.github.com/users/aurimasv","html_url":"https://github.com/aurimasv","followers_url":"https://api.github.com/users/aurimasv/followers","following_url":"https://api.github.com/users/aurimasv/following{/other_user}","gists_url":"https://api.github.com/users/aurimasv/gists{/gist_id}","starred_url":"https://api.github.com/users/aurimasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurimasv/subscriptions","organizations_url":"https://api.github.com/users/aurimasv/orgs","repos_url":"https://api.github.com/users/aurimasv/repos","events_url":"https://api.github.com/users/aurimasv/events{/privacy}","received_events_url":"https://api.github.com/users/aurimasv/received_events","type":"User","site_admin":false},"body":"This xpath doesn't seem to work very well, e.g. http://encyclopedia.jrank.org/CAL_CAR/CALENDAR.html","created_at":"2016-04-10T08:11:40Z","updated_at":"2016-04-10T08:11:40Z","html_url":"https://github.com/zotero/translators/pull/1036#discussion_r59129445","pull_request_url":"https://api.github.com/repos/zotero/translators/pulls/1036","_links":{"self":{"href":"https://api.github.com/repos/zotero/translators/pulls/comments/59129445"},"html":{"href":"https://github.com/zotero/translators/pull/1036#discussion_r59129445"},"pull_request":{"href":"https://api.github.com/repos/zotero/translators/pulls/1036"}}},"pull_request":{"url":"https://api.github.com/repos/zotero/translators/pulls/1036","id":64122886,"html_url":"https://github.com/zotero/translators/pull/1036","diff_url":"https://github.com/zotero/translators/pull/1036.diff","patch_url":"https://github.com/zotero/translators/pull/1036.patch","issue_url":"https://api.github.com/repos/zotero/translators/issues/1036","number":1036,"state":"open","locked":false,"title":"Create 1911 Encyclopedia Britannica.js","user":{"login":"guitarzxt","id":18060078,"avatar_url":"https://avatars.githubusercontent.com/u/18060078?v=3","gravatar_id":"","url":"https://api.github.com/users/guitarzxt","html_url":"https://github.com/guitarzxt","followers_url":"https://api.github.com/users/guitarzxt/followers","following_url":"https://api.github.com/users/guitarzxt/following{/other_user}","gists_url":"https://api.github.com/users/guitarzxt/gists{/gist_id}","starred_url":"https://api.github.com/users/guitarzxt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guitarzxt/subscriptions","organizations_url":"https://api.github.com/users/guitarzxt/orgs","repos_url":"https://api.github.com/users/guitarzxt/repos","events_url":"https://api.github.com/users/guitarzxt/events{/privacy}","received_events_url":"https://api.github.com/users/guitarzxt/received_events","type":"User","site_admin":false},"body":"A scraper for the 1911 Encyclopedia Britannica housed at jrank","created_at":"2016-03-25T01:55:52Z","updated_at":"2016-04-10T08:11:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42d784b7830d26dabc366be96974c02686ffe0ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zotero/translators/pulls/1036/commits","review_comments_url":"https://api.github.com/repos/zotero/translators/pulls/1036/comments","review_comment_url":"https://api.github.com/repos/zotero/translators/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zotero/translators/issues/1036/comments","statuses_url":"https://api.github.com/repos/zotero/translators/statuses/c925f29aa75043b30dd9aceb6ae422e9da1e8792","head":{"label":"guitarzxt:patch-3","ref":"patch-3","sha":"c925f29aa75043b30dd9aceb6ae422e9da1e8792","user":{"login":"guitarzxt","id":18060078,"avatar_url":"https://avatars.githubusercontent.com/u/18060078?v=3","gravatar_id":"","url":"https://api.github.com/users/guitarzxt","html_url":"https://github.com/guitarzxt","followers_url":"https://api.github.com/users/guitarzxt/followers","following_url":"https://api.github.com/users/guitarzxt/following{/other_user}","gists_url":"https://api.github.com/users/guitarzxt/gists{/gist_id}","starred_url":"https://api.github.com/users/guitarzxt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guitarzxt/subscriptions","organizations_url":"https://api.github.com/users/guitarzxt/orgs","repos_url":"https://api.github.com/users/guitarzxt/repos","events_url":"https://api.github.com/users/guitarzxt/events{/privacy}","received_events_url":"https://api.github.com/users/guitarzxt/received_events","type":"User","site_admin":false},"repo":{"id":54685061,"name":"translators","full_name":"guitarzxt/translators","owner":{"login":"guitarzxt","id":18060078,"avatar_url":"https://avatars.githubusercontent.com/u/18060078?v=3","gravatar_id":"","url":"https://api.github.com/users/guitarzxt","html_url":"https://github.com/guitarzxt","followers_url":"https://api.github.com/users/guitarzxt/followers","following_url":"https://api.github.com/users/guitarzxt/following{/other_user}","gists_url":"https://api.github.com/users/guitarzxt/gists{/gist_id}","starred_url":"https://api.github.com/users/guitarzxt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guitarzxt/subscriptions","organizations_url":"https://api.github.com/users/guitarzxt/orgs","repos_url":"https://api.github.com/users/guitarzxt/repos","events_url":"https://api.github.com/users/guitarzxt/events{/privacy}","received_events_url":"https://api.github.com/users/guitarzxt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guitarzxt/translators","description":"Zotero Translators","fork":true,"url":"https://api.github.com/repos/guitarzxt/translators","forks_url":"https://api.github.com/repos/guitarzxt/translators/forks","keys_url":"https://api.github.com/repos/guitarzxt/translators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guitarzxt/translators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guitarzxt/translators/teams","hooks_url":"https://api.github.com/repos/guitarzxt/translators/hooks","issue_events_url":"https://api.github.com/repos/guitarzxt/translators/issues/events{/number}","events_url":"https://api.github.com/repos/guitarzxt/translators/events","assignees_url":"https://api.github.com/repos/guitarzxt/translators/assignees{/user}","branches_url":"https://api.github.com/repos/guitarzxt/translators/branches{/branch}","tags_url":"https://api.github.com/repos/guitarzxt/translators/tags","blobs_url":"https://api.github.com/repos/guitarzxt/translators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guitarzxt/translators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guitarzxt/translators/git/refs{/sha}","trees_url":"https://api.github.com/repos/guitarzxt/translators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guitarzxt/translators/statuses/{sha}","languages_url":"https://api.github.com/repos/guitarzxt/translators/languages","stargazers_url":"https://api.github.com/repos/guitarzxt/translators/stargazers","contributors_url":"https://api.github.com/repos/guitarzxt/translators/contributors","subscribers_url":"https://api.github.com/repos/guitarzxt/translators/subscribers","subscription_url":"https://api.github.com/repos/guitarzxt/translators/subscription","commits_url":"https://api.github.com/repos/guitarzxt/translators/commits{/sha}","git_commits_url":"https://api.github.com/repos/guitarzxt/translators/git/commits{/sha}","comments_url":"https://api.github.com/repos/guitarzxt/translators/comments{/number}","issue_comment_url":"https://api.github.com/repos/guitarzxt/translators/issues/comments{/number}","contents_url":"https://api.github.com/repos/guitarzxt/translators/contents/{+path}","compare_url":"https://api.github.com/repos/guitarzxt/translators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guitarzxt/translators/merges","archive_url":"https://api.github.com/repos/guitarzxt/translators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guitarzxt/translators/downloads","issues_url":"https://api.github.com/repos/guitarzxt/translators/issues{/number}","pulls_url":"https://api.github.com/repos/guitarzxt/translators/pulls{/number}","milestones_url":"https://api.github.com/repos/guitarzxt/translators/milestones{/number}","notifications_url":"https://api.github.com/repos/guitarzxt/translators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guitarzxt/translators/labels{/name}","releases_url":"https://api.github.com/repos/guitarzxt/translators/releases{/id}","deployments_url":"https://api.github.com/repos/guitarzxt/translators/deployments","created_at":"2016-03-25T01:18:45Z","updated_at":"2016-03-25T01:18:48Z","pushed_at":"2016-03-25T01:55:48Z","git_url":"git://github.com/guitarzxt/translators.git","ssh_url":"git@github.com:guitarzxt/translators.git","clone_url":"https://github.com/guitarzxt/translators.git","svn_url":"https://github.com/guitarzxt/translators","homepage":"http://www.zotero.org/support/dev/translators","size":11771,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zotero:master","ref":"master","sha":"4573862cd31ac03c2dfd4f576fdf0bf579d895cb","user":{"login":"zotero","id":891917,"avatar_url":"https://avatars.githubusercontent.com/u/891917?v=3","gravatar_id":"","url":"https://api.github.com/users/zotero","html_url":"https://github.com/zotero","followers_url":"https://api.github.com/users/zotero/followers","following_url":"https://api.github.com/users/zotero/following{/other_user}","gists_url":"https://api.github.com/users/zotero/gists{/gist_id}","starred_url":"https://api.github.com/users/zotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotero/subscriptions","organizations_url":"https://api.github.com/users/zotero/orgs","repos_url":"https://api.github.com/users/zotero/repos","events_url":"https://api.github.com/users/zotero/events{/privacy}","received_events_url":"https://api.github.com/users/zotero/received_events","type":"Organization","site_admin":false},"repo":{"id":1991863,"name":"translators","full_name":"zotero/translators","owner":{"login":"zotero","id":891917,"avatar_url":"https://avatars.githubusercontent.com/u/891917?v=3","gravatar_id":"","url":"https://api.github.com/users/zotero","html_url":"https://github.com/zotero","followers_url":"https://api.github.com/users/zotero/followers","following_url":"https://api.github.com/users/zotero/following{/other_user}","gists_url":"https://api.github.com/users/zotero/gists{/gist_id}","starred_url":"https://api.github.com/users/zotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotero/subscriptions","organizations_url":"https://api.github.com/users/zotero/orgs","repos_url":"https://api.github.com/users/zotero/repos","events_url":"https://api.github.com/users/zotero/events{/privacy}","received_events_url":"https://api.github.com/users/zotero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zotero/translators","description":"Zotero Translators","fork":false,"url":"https://api.github.com/repos/zotero/translators","forks_url":"https://api.github.com/repos/zotero/translators/forks","keys_url":"https://api.github.com/repos/zotero/translators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zotero/translators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zotero/translators/teams","hooks_url":"https://api.github.com/repos/zotero/translators/hooks","issue_events_url":"https://api.github.com/repos/zotero/translators/issues/events{/number}","events_url":"https://api.github.com/repos/zotero/translators/events","assignees_url":"https://api.github.com/repos/zotero/translators/assignees{/user}","branches_url":"https://api.github.com/repos/zotero/translators/branches{/branch}","tags_url":"https://api.github.com/repos/zotero/translators/tags","blobs_url":"https://api.github.com/repos/zotero/translators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zotero/translators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zotero/translators/git/refs{/sha}","trees_url":"https://api.github.com/repos/zotero/translators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zotero/translators/statuses/{sha}","languages_url":"https://api.github.com/repos/zotero/translators/languages","stargazers_url":"https://api.github.com/repos/zotero/translators/stargazers","contributors_url":"https://api.github.com/repos/zotero/translators/contributors","subscribers_url":"https://api.github.com/repos/zotero/translators/subscribers","subscription_url":"https://api.github.com/repos/zotero/translators/subscription","commits_url":"https://api.github.com/repos/zotero/translators/commits{/sha}","git_commits_url":"https://api.github.com/repos/zotero/translators/git/commits{/sha}","comments_url":"https://api.github.com/repos/zotero/translators/comments{/number}","issue_comment_url":"https://api.github.com/repos/zotero/translators/issues/comments{/number}","contents_url":"https://api.github.com/repos/zotero/translators/contents/{+path}","compare_url":"https://api.github.com/repos/zotero/translators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zotero/translators/merges","archive_url":"https://api.github.com/repos/zotero/translators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zotero/translators/downloads","issues_url":"https://api.github.com/repos/zotero/translators/issues{/number}","pulls_url":"https://api.github.com/repos/zotero/translators/pulls{/number}","milestones_url":"https://api.github.com/repos/zotero/translators/milestones{/number}","notifications_url":"https://api.github.com/repos/zotero/translators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zotero/translators/labels{/name}","releases_url":"https://api.github.com/repos/zotero/translators/releases{/id}","deployments_url":"https://api.github.com/repos/zotero/translators/deployments","created_at":"2011-07-03T17:40:38Z","updated_at":"2016-03-18T15:56:10Z","pushed_at":"2016-04-09T21:53:49Z","git_url":"git://github.com/zotero/translators.git","ssh_url":"git@github.com:zotero/translators.git","clone_url":"https://github.com/zotero/translators.git","svn_url":"https://github.com/zotero/translators","homepage":"http://www.zotero.org/support/dev/translators","size":13209,"stargazers_count":168,"watchers_count":168,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":162,"forks":158,"open_issues":162,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zotero/translators/pulls/1036"},"html":{"href":"https://github.com/zotero/translators/pull/1036"},"issue":{"href":"https://api.github.com/repos/zotero/translators/issues/1036"},"comments":{"href":"https://api.github.com/repos/zotero/translators/issues/1036/comments"},"review_comments":{"href":"https://api.github.com/repos/zotero/translators/pulls/1036/comments"},"review_comment":{"href":"https://api.github.com/repos/zotero/translators/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zotero/translators/pulls/1036/commits"},"statuses":{"href":"https://api.github.com/repos/zotero/translators/statuses/c925f29aa75043b30dd9aceb6ae422e9da1e8792"}}}}