{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/lorien/grab/pulls/9","id":6933374,"html_url":"https://github.com/lorien/grab/pull/9","diff_url":"https://github.com/lorien/grab/pull/9.diff","patch_url":"https://github.com/lorien/grab/pull/9.patch","issue_url":"https://api.github.com/repos/lorien/grab/issues/9","number":9,"state":"closed","locked":false,"title":"Добавление возможности накопления проксей между их обновлениями","user":{"login":"temptask","id":5012267,"avatar_url":"https://avatars.githubusercontent.com/u/5012267?v=3","gravatar_id":"","url":"https://api.github.com/users/temptask","html_url":"https://github.com/temptask","followers_url":"https://api.github.com/users/temptask/followers","following_url":"https://api.github.com/users/temptask/following{/other_user}","gists_url":"https://api.github.com/users/temptask/gists{/gist_id}","starred_url":"https://api.github.com/users/temptask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temptask/subscriptions","organizations_url":"https://api.github.com/users/temptask/orgs","repos_url":"https://api.github.com/users/temptask/repos","events_url":"https://api.github.com/users/temptask/events{/privacy}","received_events_url":"https://api.github.com/users/temptask/received_events","type":"User","site_admin":false},"body":"Раньше, при каждом обновлении прокси-листа, старый лист затирался новым. \r\nДобавил возможность держать старые прокси в списке, а при обновлении просто расширять список проксями, которых ещё нет в списке. (т.е. добавлять только свежие соксы, не дублируя старые)\r\nТакже, ранее, при обновлении проксей, итератор каждый раз создавался заново, что влечёт за собой такую ситацию: если время обновления списка относительно маленькое, то итератор не успевает доходить до конца списка и обновляется и , в итоге, последние прокси в списке так и не юзаются. Поэтому сейчас он создаётся единожды, но вместо itertools.cycle использую свой cycle, потому что в itertools список кешируется, т.е. не получится динамически его обновлять.","created_at":"2013-07-15T18:39:06Z","updated_at":"2015-05-08T17:14:49Z","closed_at":"2015-05-08T17:14:49Z","merged_at":null,"merge_commit_sha":"98c9e998e987eb72d7079c21147dd1288b9a7056","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lorien/grab/pulls/9/commits","review_comments_url":"https://api.github.com/repos/lorien/grab/pulls/9/comments","review_comment_url":"https://api.github.com/repos/lorien/grab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lorien/grab/issues/9/comments","statuses_url":"https://api.github.com/repos/lorien/grab/statuses/95578139910a7befdfd090d8c7570102f51c6e7c","head":{"label":"temptask:master","ref":"master","sha":"95578139910a7befdfd090d8c7570102f51c6e7c","user":{"login":"temptask","id":5012267,"avatar_url":"https://avatars.githubusercontent.com/u/5012267?v=3","gravatar_id":"","url":"https://api.github.com/users/temptask","html_url":"https://github.com/temptask","followers_url":"https://api.github.com/users/temptask/followers","following_url":"https://api.github.com/users/temptask/following{/other_user}","gists_url":"https://api.github.com/users/temptask/gists{/gist_id}","starred_url":"https://api.github.com/users/temptask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temptask/subscriptions","organizations_url":"https://api.github.com/users/temptask/orgs","repos_url":"https://api.github.com/users/temptask/repos","events_url":"https://api.github.com/users/temptask/events{/privacy}","received_events_url":"https://api.github.com/users/temptask/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"lorien:master","ref":"master","sha":"4d9aff010f6769fd89bc9042ebef15c1c7fcda6f","user":{"login":"lorien","id":35171,"avatar_url":"https://avatars.githubusercontent.com/u/35171?v=3","gravatar_id":"","url":"https://api.github.com/users/lorien","html_url":"https://github.com/lorien","followers_url":"https://api.github.com/users/lorien/followers","following_url":"https://api.github.com/users/lorien/following{/other_user}","gists_url":"https://api.github.com/users/lorien/gists{/gist_id}","starred_url":"https://api.github.com/users/lorien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorien/subscriptions","organizations_url":"https://api.github.com/users/lorien/orgs","repos_url":"https://api.github.com/users/lorien/repos","events_url":"https://api.github.com/users/lorien/events{/privacy}","received_events_url":"https://api.github.com/users/lorien/received_events","type":"User","site_admin":false},"repo":{"id":9787912,"name":"grab","full_name":"lorien/grab","owner":{"login":"lorien","id":35171,"avatar_url":"https://avatars.githubusercontent.com/u/35171?v=3","gravatar_id":"","url":"https://api.github.com/users/lorien","html_url":"https://github.com/lorien","followers_url":"https://api.github.com/users/lorien/followers","following_url":"https://api.github.com/users/lorien/following{/other_user}","gists_url":"https://api.github.com/users/lorien/gists{/gist_id}","starred_url":"https://api.github.com/users/lorien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorien/subscriptions","organizations_url":"https://api.github.com/users/lorien/orgs","repos_url":"https://api.github.com/users/lorien/repos","events_url":"https://api.github.com/users/lorien/events{/privacy}","received_events_url":"https://api.github.com/users/lorien/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lorien/grab","description":"Web Scraping Framework","fork":false,"url":"https://api.github.com/repos/lorien/grab","forks_url":"https://api.github.com/repos/lorien/grab/forks","keys_url":"https://api.github.com/repos/lorien/grab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lorien/grab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lorien/grab/teams","hooks_url":"https://api.github.com/repos/lorien/grab/hooks","issue_events_url":"https://api.github.com/repos/lorien/grab/issues/events{/number}","events_url":"https://api.github.com/repos/lorien/grab/events","assignees_url":"https://api.github.com/repos/lorien/grab/assignees{/user}","branches_url":"https://api.github.com/repos/lorien/grab/branches{/branch}","tags_url":"https://api.github.com/repos/lorien/grab/tags","blobs_url":"https://api.github.com/repos/lorien/grab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lorien/grab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lorien/grab/git/refs{/sha}","trees_url":"https://api.github.com/repos/lorien/grab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lorien/grab/statuses/{sha}","languages_url":"https://api.github.com/repos/lorien/grab/languages","stargazers_url":"https://api.github.com/repos/lorien/grab/stargazers","contributors_url":"https://api.github.com/repos/lorien/grab/contributors","subscribers_url":"https://api.github.com/repos/lorien/grab/subscribers","subscription_url":"https://api.github.com/repos/lorien/grab/subscription","commits_url":"https://api.github.com/repos/lorien/grab/commits{/sha}","git_commits_url":"https://api.github.com/repos/lorien/grab/git/commits{/sha}","comments_url":"https://api.github.com/repos/lorien/grab/comments{/number}","issue_comment_url":"https://api.github.com/repos/lorien/grab/issues/comments{/number}","contents_url":"https://api.github.com/repos/lorien/grab/contents/{+path}","compare_url":"https://api.github.com/repos/lorien/grab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lorien/grab/merges","archive_url":"https://api.github.com/repos/lorien/grab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lorien/grab/downloads","issues_url":"https://api.github.com/repos/lorien/grab/issues{/number}","pulls_url":"https://api.github.com/repos/lorien/grab/pulls{/number}","milestones_url":"https://api.github.com/repos/lorien/grab/milestones{/number}","notifications_url":"https://api.github.com/repos/lorien/grab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lorien/grab/labels{/name}","releases_url":"https://api.github.com/repos/lorien/grab/releases{/id}","created_at":"2013-05-01T08:10:22Z","updated_at":"2015-05-08T13:29:22Z","pushed_at":"2015-05-08T12:21:33Z","git_url":"git://github.com/lorien/grab.git","ssh_url":"git@github.com:lorien/grab.git","clone_url":"https://github.com/lorien/grab.git","svn_url":"https://github.com/lorien/grab","homepage":"http://grablib.org","size":6140,"stargazers_count":235,"watchers_count":235,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":13,"forks":67,"open_issues":13,"watchers":235,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lorien/grab/pulls/9"},"html":{"href":"https://github.com/lorien/grab/pull/9"},"issue":{"href":"https://api.github.com/repos/lorien/grab/issues/9"},"comments":{"href":"https://api.github.com/repos/lorien/grab/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/lorien/grab/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/lorien/grab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lorien/grab/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/lorien/grab/statuses/95578139910a7befdfd090d8c7570102f51c6e7c"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":13,"review_comments":0,"commits":1,"additions":18,"deletions":10,"changed_files":1}}