{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/comments/69325009","id":69325009,"diff_hunk":"@@ -0,0 +1,62 @@\n+import datetime\n+import logging\n+\n+from furl import furl\n+from lxml import etree\n+\n+from share import Harvester\n+\n+logger = logging.getLogger(__name__)\n+\n+\n+class BiorxivHarvester(Harvester):\n+\n+    namespaces = {\n+        'dc': 'http://purl.org/dc/elements/1.1/',\n+        'syn': 'http://purl.org/rss/1.0/modules/syndication/',\n+        'content': 'http://purl.org/rss/1.0/modules/content/',\n+        'admin': 'http://webns.net/mvcb/',\n+        'prism': 'http://purl.org/rss/1.0/modules/prism/',\n+        'taxo': 'http://purl.org/rss/1.0/modules/taxonomy/',\n+        'ns0': 'http://purl.org/rss/1.0/',\n+        'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'\n+    }\n+\n+    url = 'http://connect.biorxiv.org/biorxiv_xml.php'\n+\n+    def do_harvest(self, start_date, end_date):\n+        # BioRxiv does not have filter dates; returns 30 most recent\n+        start_date = start_date.date()\n+        url = (furl(self.url).set(query_params={","path":"providers/org/biorxiv/harvester.py","position":30,"original_position":30,"commit_id":"b97de7e739a7b623e61b42c7295cff33a323e11f","original_commit_id":"b97de7e739a7b623e61b42c7295cff33a323e11f","user":{"login":"chrisseto","id":5532905,"avatar_url":"https://avatars.githubusercontent.com/u/5532905?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseto","html_url":"https://github.com/chrisseto","followers_url":"https://api.github.com/users/chrisseto/followers","following_url":"https://api.github.com/users/chrisseto/following{/other_user}","gists_url":"https://api.github.com/users/chrisseto/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseto/subscriptions","organizations_url":"https://api.github.com/users/chrisseto/orgs","repos_url":"https://api.github.com/users/chrisseto/repos","events_url":"https://api.github.com/users/chrisseto/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseto/received_events","type":"User","site_admin":false},"body":"No need for the extra `(``)`s around `furl(...)`","created_at":"2016-07-01T16:29:41Z","updated_at":"2016-07-01T16:29:41Z","html_url":"https://github.com/CenterForOpenScience/SHARE/pull/193#discussion_r69325009","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/comments/69325009"},"html":{"href":"https://github.com/CenterForOpenScience/SHARE/pull/193#discussion_r69325009"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193","id":75989220,"html_url":"https://github.com/CenterForOpenScience/SHARE/pull/193","diff_url":"https://github.com/CenterForOpenScience/SHARE/pull/193.diff","patch_url":"https://github.com/CenterForOpenScience/SHARE/pull/193.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues/193","number":193,"state":"open","locked":false,"title":"BioRxiv Harvester & Normalizer","user":{"login":"leb2dg","id":7131985,"avatar_url":"https://avatars.githubusercontent.com/u/7131985?v=3","gravatar_id":"","url":"https://api.github.com/users/leb2dg","html_url":"https://github.com/leb2dg","followers_url":"https://api.github.com/users/leb2dg/followers","following_url":"https://api.github.com/users/leb2dg/following{/other_user}","gists_url":"https://api.github.com/users/leb2dg/gists{/gist_id}","starred_url":"https://api.github.com/users/leb2dg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leb2dg/subscriptions","organizations_url":"https://api.github.com/users/leb2dg/orgs","repos_url":"https://api.github.com/users/leb2dg/repos","events_url":"https://api.github.com/users/leb2dg/events{/privacy}","received_events_url":"https://api.github.com/users/leb2dg/received_events","type":"User","site_admin":false},"body":"Rss feed","created_at":"2016-07-01T14:35:33Z","updated_at":"2016-07-01T16:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e5614fc6ca2b8add0466a2a695b512f1782d22a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues/193/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/statuses/b97de7e739a7b623e61b42c7295cff33a323e11f","head":{"label":"leb2dg:feature/bioRxiv","ref":"feature/bioRxiv","sha":"b97de7e739a7b623e61b42c7295cff33a323e11f","user":{"login":"leb2dg","id":7131985,"avatar_url":"https://avatars.githubusercontent.com/u/7131985?v=3","gravatar_id":"","url":"https://api.github.com/users/leb2dg","html_url":"https://github.com/leb2dg","followers_url":"https://api.github.com/users/leb2dg/followers","following_url":"https://api.github.com/users/leb2dg/following{/other_user}","gists_url":"https://api.github.com/users/leb2dg/gists{/gist_id}","starred_url":"https://api.github.com/users/leb2dg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leb2dg/subscriptions","organizations_url":"https://api.github.com/users/leb2dg/orgs","repos_url":"https://api.github.com/users/leb2dg/repos","events_url":"https://api.github.com/users/leb2dg/events{/privacy}","received_events_url":"https://api.github.com/users/leb2dg/received_events","type":"User","site_admin":false},"repo":{"id":62228789,"name":"SHARE","full_name":"leb2dg/SHARE","owner":{"login":"leb2dg","id":7131985,"avatar_url":"https://avatars.githubusercontent.com/u/7131985?v=3","gravatar_id":"","url":"https://api.github.com/users/leb2dg","html_url":"https://github.com/leb2dg","followers_url":"https://api.github.com/users/leb2dg/followers","following_url":"https://api.github.com/users/leb2dg/following{/other_user}","gists_url":"https://api.github.com/users/leb2dg/gists{/gist_id}","starred_url":"https://api.github.com/users/leb2dg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leb2dg/subscriptions","organizations_url":"https://api.github.com/users/leb2dg/orgs","repos_url":"https://api.github.com/users/leb2dg/repos","events_url":"https://api.github.com/users/leb2dg/events{/privacy}","received_events_url":"https://api.github.com/users/leb2dg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leb2dg/SHARE","description":"A \"table of contents\" to the various projects that make up SHARE Notification Service development at COS.","fork":true,"url":"https://api.github.com/repos/leb2dg/SHARE","forks_url":"https://api.github.com/repos/leb2dg/SHARE/forks","keys_url":"https://api.github.com/repos/leb2dg/SHARE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leb2dg/SHARE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leb2dg/SHARE/teams","hooks_url":"https://api.github.com/repos/leb2dg/SHARE/hooks","issue_events_url":"https://api.github.com/repos/leb2dg/SHARE/issues/events{/number}","events_url":"https://api.github.com/repos/leb2dg/SHARE/events","assignees_url":"https://api.github.com/repos/leb2dg/SHARE/assignees{/user}","branches_url":"https://api.github.com/repos/leb2dg/SHARE/branches{/branch}","tags_url":"https://api.github.com/repos/leb2dg/SHARE/tags","blobs_url":"https://api.github.com/repos/leb2dg/SHARE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leb2dg/SHARE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leb2dg/SHARE/git/refs{/sha}","trees_url":"https://api.github.com/repos/leb2dg/SHARE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leb2dg/SHARE/statuses/{sha}","languages_url":"https://api.github.com/repos/leb2dg/SHARE/languages","stargazers_url":"https://api.github.com/repos/leb2dg/SHARE/stargazers","contributors_url":"https://api.github.com/repos/leb2dg/SHARE/contributors","subscribers_url":"https://api.github.com/repos/leb2dg/SHARE/subscribers","subscription_url":"https://api.github.com/repos/leb2dg/SHARE/subscription","commits_url":"https://api.github.com/repos/leb2dg/SHARE/commits{/sha}","git_commits_url":"https://api.github.com/repos/leb2dg/SHARE/git/commits{/sha}","comments_url":"https://api.github.com/repos/leb2dg/SHARE/comments{/number}","issue_comment_url":"https://api.github.com/repos/leb2dg/SHARE/issues/comments{/number}","contents_url":"https://api.github.com/repos/leb2dg/SHARE/contents/{+path}","compare_url":"https://api.github.com/repos/leb2dg/SHARE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leb2dg/SHARE/merges","archive_url":"https://api.github.com/repos/leb2dg/SHARE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leb2dg/SHARE/downloads","issues_url":"https://api.github.com/repos/leb2dg/SHARE/issues{/number}","pulls_url":"https://api.github.com/repos/leb2dg/SHARE/pulls{/number}","milestones_url":"https://api.github.com/repos/leb2dg/SHARE/milestones{/number}","notifications_url":"https://api.github.com/repos/leb2dg/SHARE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leb2dg/SHARE/labels{/name}","releases_url":"https://api.github.com/repos/leb2dg/SHARE/releases{/id}","deployments_url":"https://api.github.com/repos/leb2dg/SHARE/deployments","created_at":"2016-06-29T13:40:04Z","updated_at":"2016-05-05T15:46:28Z","pushed_at":"2016-07-01T14:53:51Z","git_url":"git://github.com/leb2dg/SHARE.git","ssh_url":"git@github.com:leb2dg/SHARE.git","clone_url":"https://github.com/leb2dg/SHARE.git","svn_url":"https://github.com/leb2dg/SHARE","homepage":"","size":11151,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"CenterForOpenScience:develop","ref":"develop","sha":"a90574198f570a4549d5ce7d09276929a2bd111a","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":21280081,"name":"SHARE","full_name":"CenterForOpenScience/SHARE","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/SHARE","description":"A \"table of contents\" to the various projects that make up SHARE Notification Service development at COS.","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/SHARE","forks_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/SHARE/deployments","created_at":"2014-06-27T15:19:21Z","updated_at":"2016-05-05T15:46:28Z","pushed_at":"2016-07-01T16:22:09Z","git_url":"git://github.com/CenterForOpenScience/SHARE.git","ssh_url":"git@github.com:CenterForOpenScience/SHARE.git","clone_url":"https://github.com/CenterForOpenScience/SHARE.git","svn_url":"https://github.com/CenterForOpenScience/SHARE","homepage":"","size":11229,"stargazers_count":24,"watchers_count":24,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":36,"forks":15,"open_issues":36,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193"},"html":{"href":"https://github.com/CenterForOpenScience/SHARE/pull/193"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues/193"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/SHARE/statuses/b97de7e739a7b623e61b42c7295cff33a323e11f"}}}}
{"actor":{"display_login":"chrisseto"}}