{"action":"created","comment":{"url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/comments/229408578","pull_request_review_id":169892436,"id":229408578,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTQwODU3OA==","diff_hunk":"@@ -0,0 +1,79 @@\n+import argparse\n+import csv\n+from signal import signal, SIGPIPE, SIG_DFL\n+from urllib.parse import urlparse\n+from tqdm import tqdm as progress\n+\n+from .v5_client import LuminosoClient\n+from .v5_constants import URL_BASE\n+\n+# Python raises IOError when reading process (such as `head`) closes a pipe.\n+# Setting SIG_DFL as the SIGPIPE handler prevents this program from crashing.\n+signal(SIGPIPE, SIG_DFL)\n+\n+\n+DESCRIPTION = \"Download documents from a Luminoso project via the command line.\"\n+DOCS_PER_BATCH = 1000","path":"luminoso_api/v5_download.py","position":16,"original_position":16,"commit_id":"1d641c6bbb96eae5e7012ea951346383514d0ff0","original_commit_id":"1d641c6bbb96eae5e7012ea951346383514d0ff0","user":{"login":"rem-luminoso","id":40435643,"node_id":"MDQ6VXNlcjQwNDM1NjQz","avatar_url":"https://avatars0.githubusercontent.com/u/40435643?v=4","gravatar_id":"","url":"https://api.github.com/users/rem-luminoso","html_url":"https://github.com/rem-luminoso","followers_url":"https://api.github.com/users/rem-luminoso/followers","following_url":"https://api.github.com/users/rem-luminoso/following{/other_user}","gists_url":"https://api.github.com/users/rem-luminoso/gists{/gist_id}","starred_url":"https://api.github.com/users/rem-luminoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rem-luminoso/subscriptions","organizations_url":"https://api.github.com/users/rem-luminoso/orgs","repos_url":"https://api.github.com/users/rem-luminoso/repos","events_url":"https://api.github.com/users/rem-luminoso/events{/privacy}","received_events_url":"https://api.github.com/users/rem-luminoso/received_events","type":"User","site_admin":false},"body":"We can get up to 25000 documents at a time with the API.  Was this number determined to be faster than getting more at a time and making fewer calls?","created_at":"2018-10-30T17:27:39Z","updated_at":"2018-10-30T17:30:21Z","html_url":"https://github.com/LuminosoInsight/luminoso-api-client-python/pull/44#discussion_r229408578","pull_request_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/comments/229408578"},"html":{"href":"https://github.com/LuminosoInsight/luminoso-api-client-python/pull/44#discussion_r229408578"},"pull_request":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44","id":218795137,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4Nzk1MTM3","html_url":"https://github.com/LuminosoInsight/luminoso-api-client-python/pull/44","diff_url":"https://github.com/LuminosoInsight/luminoso-api-client-python/pull/44.diff","patch_url":"https://github.com/LuminosoInsight/luminoso-api-client-python/pull/44.patch","issue_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/44","number":44,"state":"open","locked":false,"title":"Add a lumi-download script for v5","user":{"login":"rspeer","id":234227,"node_id":"MDQ6VXNlcjIzNDIyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/234227?v=4","gravatar_id":"","url":"https://api.github.com/users/rspeer","html_url":"https://github.com/rspeer","followers_url":"https://api.github.com/users/rspeer/followers","following_url":"https://api.github.com/users/rspeer/following{/other_user}","gists_url":"https://api.github.com/users/rspeer/gists{/gist_id}","starred_url":"https://api.github.com/users/rspeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspeer/subscriptions","organizations_url":"https://api.github.com/users/rspeer/orgs","repos_url":"https://api.github.com/users/rspeer/repos","events_url":"https://api.github.com/users/rspeer/events{/privacy}","received_events_url":"https://api.github.com/users/rspeer/received_events","type":"User","site_admin":false},"body":"I also plan to update lumi-upload to v5, but this is the one I need first. Also, relying on the TSV format means that I can just upload modified projects via the Web interface for now.","created_at":"2018-09-27T21:32:13Z","updated_at":"2018-10-30T17:30:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17f8aa385645892ac8cd0937204756788e511a49","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44/commits","review_comments_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44/comments","review_comment_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/44/comments","statuses_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/statuses/1d641c6bbb96eae5e7012ea951346383514d0ff0","head":{"label":"LuminosoInsight:v5-download","ref":"v5-download","sha":"1d641c6bbb96eae5e7012ea951346383514d0ff0","user":{"login":"LuminosoInsight","id":1036291,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzYyOTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1036291?v=4","gravatar_id":"","url":"https://api.github.com/users/LuminosoInsight","html_url":"https://github.com/LuminosoInsight","followers_url":"https://api.github.com/users/LuminosoInsight/followers","following_url":"https://api.github.com/users/LuminosoInsight/following{/other_user}","gists_url":"https://api.github.com/users/LuminosoInsight/gists{/gist_id}","starred_url":"https://api.github.com/users/LuminosoInsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuminosoInsight/subscriptions","organizations_url":"https://api.github.com/users/LuminosoInsight/orgs","repos_url":"https://api.github.com/users/LuminosoInsight/repos","events_url":"https://api.github.com/users/LuminosoInsight/events{/privacy}","received_events_url":"https://api.github.com/users/LuminosoInsight/received_events","type":"Organization","site_admin":false},"repo":{"id":5208103,"node_id":"MDEwOlJlcG9zaXRvcnk1MjA4MTAz","name":"luminoso-api-client-python","full_name":"LuminosoInsight/luminoso-api-client-python","private":false,"owner":{"login":"LuminosoInsight","id":1036291,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzYyOTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1036291?v=4","gravatar_id":"","url":"https://api.github.com/users/LuminosoInsight","html_url":"https://github.com/LuminosoInsight","followers_url":"https://api.github.com/users/LuminosoInsight/followers","following_url":"https://api.github.com/users/LuminosoInsight/following{/other_user}","gists_url":"https://api.github.com/users/LuminosoInsight/gists{/gist_id}","starred_url":"https://api.github.com/users/LuminosoInsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuminosoInsight/subscriptions","organizations_url":"https://api.github.com/users/LuminosoInsight/orgs","repos_url":"https://api.github.com/users/LuminosoInsight/repos","events_url":"https://api.github.com/users/LuminosoInsight/events{/privacy}","received_events_url":"https://api.github.com/users/LuminosoInsight/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LuminosoInsight/luminoso-api-client-python","description":"Python client library for communicating with the Luminoso REST API","fork":false,"url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python","forks_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/forks","keys_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/teams","hooks_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/hooks","issue_events_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/events","assignees_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/tags","blobs_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/languages","stargazers_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/stargazers","contributors_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/contributors","subscribers_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/subscribers","subscription_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/subscription","commits_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/merges","archive_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/downloads","issues_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/labels{/name}","releases_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/deployments","created_at":"2012-07-27T18:41:23Z","updated_at":"2018-08-30T21:09:26Z","pushed_at":"2018-09-27T21:32:13Z","git_url":"git://github.com/LuminosoInsight/luminoso-api-client-python.git","ssh_url":"git@github.com:LuminosoInsight/luminoso-api-client-python.git","clone_url":"https://github.com/LuminosoInsight/luminoso-api-client-python.git","svn_url":"https://github.com/LuminosoInsight/luminoso-api-client-python","homepage":null,"size":396,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":4,"watchers":8,"default_branch":"master"}},"base":{"label":"LuminosoInsight:master","ref":"master","sha":"e9e56892c26a4050e5fd60aec82a2686c7365f02","user":{"login":"LuminosoInsight","id":1036291,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzYyOTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1036291?v=4","gravatar_id":"","url":"https://api.github.com/users/LuminosoInsight","html_url":"https://github.com/LuminosoInsight","followers_url":"https://api.github.com/users/LuminosoInsight/followers","following_url":"https://api.github.com/users/LuminosoInsight/following{/other_user}","gists_url":"https://api.github.com/users/LuminosoInsight/gists{/gist_id}","starred_url":"https://api.github.com/users/LuminosoInsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuminosoInsight/subscriptions","organizations_url":"https://api.github.com/users/LuminosoInsight/orgs","repos_url":"https://api.github.com/users/LuminosoInsight/repos","events_url":"https://api.github.com/users/LuminosoInsight/events{/privacy}","received_events_url":"https://api.github.com/users/LuminosoInsight/received_events","type":"Organization","site_admin":false},"repo":{"id":5208103,"node_id":"MDEwOlJlcG9zaXRvcnk1MjA4MTAz","name":"luminoso-api-client-python","full_name":"LuminosoInsight/luminoso-api-client-python","private":false,"owner":{"login":"LuminosoInsight","id":1036291,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMzYyOTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1036291?v=4","gravatar_id":"","url":"https://api.github.com/users/LuminosoInsight","html_url":"https://github.com/LuminosoInsight","followers_url":"https://api.github.com/users/LuminosoInsight/followers","following_url":"https://api.github.com/users/LuminosoInsight/following{/other_user}","gists_url":"https://api.github.com/users/LuminosoInsight/gists{/gist_id}","starred_url":"https://api.github.com/users/LuminosoInsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuminosoInsight/subscriptions","organizations_url":"https://api.github.com/users/LuminosoInsight/orgs","repos_url":"https://api.github.com/users/LuminosoInsight/repos","events_url":"https://api.github.com/users/LuminosoInsight/events{/privacy}","received_events_url":"https://api.github.com/users/LuminosoInsight/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LuminosoInsight/luminoso-api-client-python","description":"Python client library for communicating with the Luminoso REST API","fork":false,"url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python","forks_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/forks","keys_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/teams","hooks_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/hooks","issue_events_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/events","assignees_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/tags","blobs_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/languages","stargazers_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/stargazers","contributors_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/contributors","subscribers_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/subscribers","subscription_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/subscription","commits_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/merges","archive_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/downloads","issues_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/labels{/name}","releases_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/deployments","created_at":"2012-07-27T18:41:23Z","updated_at":"2018-08-30T21:09:26Z","pushed_at":"2018-09-27T21:32:13Z","git_url":"git://github.com/LuminosoInsight/luminoso-api-client-python.git","ssh_url":"git@github.com:LuminosoInsight/luminoso-api-client-python.git","clone_url":"https://github.com/LuminosoInsight/luminoso-api-client-python.git","svn_url":"https://github.com/LuminosoInsight/luminoso-api-client-python","homepage":null,"size":396,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44"},"html":{"href":"https://github.com/LuminosoInsight/luminoso-api-client-python/pull/44"},"issue":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/44"},"comments":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/LuminosoInsight/luminoso-api-client-python/statuses/1d641c6bbb96eae5e7012ea951346383514d0ff0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rem-luminoso"}}