{"action":"created","comment":{"url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/comments/39391172","id":39391172,"diff_hunk":"@@ -2,11 +2,16 @@\n \r\n import urllib\r\n import os\r\n+from urlparse import urlparse\r\n+from os.path import splitext,basename\r\n+from multiprocessing import Pool,TimeoutError\r\n \r\n class ImagesDownload(object):\r\n \r\n-\tdef __init__(self, fileName = None):\r\n+\tdef __init__(self, pool_size=5,timeout=10,fileName = None):\r","path":"ImageDownloader.py","position":11,"original_position":11,"commit_id":"d4b5c40f1a8087bd0bd7c1dfbac2634218d9c822","original_commit_id":"d4b5c40f1a8087bd0bd7c1dfbac2634218d9c822","user":{"login":"NaveenKarippai","id":11843784,"avatar_url":"https://avatars.githubusercontent.com/u/11843784?v=3","gravatar_id":"","url":"https://api.github.com/users/NaveenKarippai","html_url":"https://github.com/NaveenKarippai","followers_url":"https://api.github.com/users/NaveenKarippai/followers","following_url":"https://api.github.com/users/NaveenKarippai/following{/other_user}","gists_url":"https://api.github.com/users/NaveenKarippai/gists{/gist_id}","starred_url":"https://api.github.com/users/NaveenKarippai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaveenKarippai/subscriptions","organizations_url":"https://api.github.com/users/NaveenKarippai/orgs","repos_url":"https://api.github.com/users/NaveenKarippai/repos","events_url":"https://api.github.com/users/NaveenKarippai/events{/privacy}","received_events_url":"https://api.github.com/users/NaveenKarippai/received_events","type":"User","site_admin":false},"body":"Could you please make changes to ImageDownloader.py file as you suggested.\r\n```\r\nimages = ImagesDownload(fileName=\"ImageCollection.txt\")\r\n```\r\nWhy did I not think of that!? ;)","created_at":"2015-09-14T13:12:53Z","updated_at":"2015-09-14T13:12:53Z","html_url":"https://github.com/NaveenKarippai/image-scraper/pull/1#discussion_r39391172","pull_request_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/comments/39391172"},"html":{"href":"https://github.com/NaveenKarippai/image-scraper/pull/1#discussion_r39391172"},"pull_request":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1","id":44885792,"html_url":"https://github.com/NaveenKarippai/image-scraper/pull/1","diff_url":"https://github.com/NaveenKarippai/image-scraper/pull/1.diff","patch_url":"https://github.com/NaveenKarippai/image-scraper/pull/1.patch","issue_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues/1","number":1,"state":"open","locked":false,"title":"Some updates","user":{"login":"nathanIL","id":508444,"avatar_url":"https://avatars.githubusercontent.com/u/508444?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanIL","html_url":"https://github.com/nathanIL","followers_url":"https://api.github.com/users/nathanIL/followers","following_url":"https://api.github.com/users/nathanIL/following{/other_user}","gists_url":"https://api.github.com/users/nathanIL/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanIL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanIL/subscriptions","organizations_url":"https://api.github.com/users/nathanIL/orgs","repos_url":"https://api.github.com/users/nathanIL/repos","events_url":"https://api.github.com/users/nathanIL/events{/privacy}","received_events_url":"https://api.github.com/users/nathanIL/received_events","type":"User","site_admin":false},"body":"See commit message for additional info.","created_at":"2015-09-14T01:21:31Z","updated_at":"2015-09-14T13:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"772cc3b62d23bfe07b9344e24df760dbbf6d86c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1/commits","review_comments_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1/comments","review_comment_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues/1/comments","statuses_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/statuses/d4b5c40f1a8087bd0bd7c1dfbac2634218d9c822","head":{"label":"nathanIL:master","ref":"master","sha":"d4b5c40f1a8087bd0bd7c1dfbac2634218d9c822","user":{"login":"nathanIL","id":508444,"avatar_url":"https://avatars.githubusercontent.com/u/508444?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanIL","html_url":"https://github.com/nathanIL","followers_url":"https://api.github.com/users/nathanIL/followers","following_url":"https://api.github.com/users/nathanIL/following{/other_user}","gists_url":"https://api.github.com/users/nathanIL/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanIL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanIL/subscriptions","organizations_url":"https://api.github.com/users/nathanIL/orgs","repos_url":"https://api.github.com/users/nathanIL/repos","events_url":"https://api.github.com/users/nathanIL/events{/privacy}","received_events_url":"https://api.github.com/users/nathanIL/received_events","type":"User","site_admin":false},"repo":{"id":42353348,"name":"image-scraper","full_name":"nathanIL/image-scraper","owner":{"login":"nathanIL","id":508444,"avatar_url":"https://avatars.githubusercontent.com/u/508444?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanIL","html_url":"https://github.com/nathanIL","followers_url":"https://api.github.com/users/nathanIL/followers","following_url":"https://api.github.com/users/nathanIL/following{/other_user}","gists_url":"https://api.github.com/users/nathanIL/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanIL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanIL/subscriptions","organizations_url":"https://api.github.com/users/nathanIL/orgs","repos_url":"https://api.github.com/users/nathanIL/repos","events_url":"https://api.github.com/users/nathanIL/events{/privacy}","received_events_url":"https://api.github.com/users/nathanIL/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathanIL/image-scraper","description":"Python script to scrap images","fork":true,"url":"https://api.github.com/repos/nathanIL/image-scraper","forks_url":"https://api.github.com/repos/nathanIL/image-scraper/forks","keys_url":"https://api.github.com/repos/nathanIL/image-scraper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathanIL/image-scraper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathanIL/image-scraper/teams","hooks_url":"https://api.github.com/repos/nathanIL/image-scraper/hooks","issue_events_url":"https://api.github.com/repos/nathanIL/image-scraper/issues/events{/number}","events_url":"https://api.github.com/repos/nathanIL/image-scraper/events","assignees_url":"https://api.github.com/repos/nathanIL/image-scraper/assignees{/user}","branches_url":"https://api.github.com/repos/nathanIL/image-scraper/branches{/branch}","tags_url":"https://api.github.com/repos/nathanIL/image-scraper/tags","blobs_url":"https://api.github.com/repos/nathanIL/image-scraper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathanIL/image-scraper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathanIL/image-scraper/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathanIL/image-scraper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathanIL/image-scraper/statuses/{sha}","languages_url":"https://api.github.com/repos/nathanIL/image-scraper/languages","stargazers_url":"https://api.github.com/repos/nathanIL/image-scraper/stargazers","contributors_url":"https://api.github.com/repos/nathanIL/image-scraper/contributors","subscribers_url":"https://api.github.com/repos/nathanIL/image-scraper/subscribers","subscription_url":"https://api.github.com/repos/nathanIL/image-scraper/subscription","commits_url":"https://api.github.com/repos/nathanIL/image-scraper/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathanIL/image-scraper/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathanIL/image-scraper/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathanIL/image-scraper/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathanIL/image-scraper/contents/{+path}","compare_url":"https://api.github.com/repos/nathanIL/image-scraper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathanIL/image-scraper/merges","archive_url":"https://api.github.com/repos/nathanIL/image-scraper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathanIL/image-scraper/downloads","issues_url":"https://api.github.com/repos/nathanIL/image-scraper/issues{/number}","pulls_url":"https://api.github.com/repos/nathanIL/image-scraper/pulls{/number}","milestones_url":"https://api.github.com/repos/nathanIL/image-scraper/milestones{/number}","notifications_url":"https://api.github.com/repos/nathanIL/image-scraper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathanIL/image-scraper/labels{/name}","releases_url":"https://api.github.com/repos/nathanIL/image-scraper/releases{/id}","created_at":"2015-09-12T10:36:18Z","updated_at":"2015-09-12T10:36:19Z","pushed_at":"2015-09-14T01:19:51Z","git_url":"git://github.com/nathanIL/image-scraper.git","ssh_url":"git@github.com:nathanIL/image-scraper.git","clone_url":"https://github.com/nathanIL/image-scraper.git","svn_url":"https://github.com/nathanIL/image-scraper","homepage":"","size":184,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"NaveenKarippai:master","ref":"master","sha":"ff1257dd6f95a2a9ecce87af042da75e90efa5c1","user":{"login":"NaveenKarippai","id":11843784,"avatar_url":"https://avatars.githubusercontent.com/u/11843784?v=3","gravatar_id":"","url":"https://api.github.com/users/NaveenKarippai","html_url":"https://github.com/NaveenKarippai","followers_url":"https://api.github.com/users/NaveenKarippai/followers","following_url":"https://api.github.com/users/NaveenKarippai/following{/other_user}","gists_url":"https://api.github.com/users/NaveenKarippai/gists{/gist_id}","starred_url":"https://api.github.com/users/NaveenKarippai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaveenKarippai/subscriptions","organizations_url":"https://api.github.com/users/NaveenKarippai/orgs","repos_url":"https://api.github.com/users/NaveenKarippai/repos","events_url":"https://api.github.com/users/NaveenKarippai/events{/privacy}","received_events_url":"https://api.github.com/users/NaveenKarippai/received_events","type":"User","site_admin":false},"repo":{"id":40370696,"name":"image-scraper","full_name":"NaveenKarippai/image-scraper","owner":{"login":"NaveenKarippai","id":11843784,"avatar_url":"https://avatars.githubusercontent.com/u/11843784?v=3","gravatar_id":"","url":"https://api.github.com/users/NaveenKarippai","html_url":"https://github.com/NaveenKarippai","followers_url":"https://api.github.com/users/NaveenKarippai/followers","following_url":"https://api.github.com/users/NaveenKarippai/following{/other_user}","gists_url":"https://api.github.com/users/NaveenKarippai/gists{/gist_id}","starred_url":"https://api.github.com/users/NaveenKarippai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaveenKarippai/subscriptions","organizations_url":"https://api.github.com/users/NaveenKarippai/orgs","repos_url":"https://api.github.com/users/NaveenKarippai/repos","events_url":"https://api.github.com/users/NaveenKarippai/events{/privacy}","received_events_url":"https://api.github.com/users/NaveenKarippai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NaveenKarippai/image-scraper","description":"Python script to scrap images","fork":false,"url":"https://api.github.com/repos/NaveenKarippai/image-scraper","forks_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/forks","keys_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/teams","hooks_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/hooks","issue_events_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues/events{/number}","events_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/events","assignees_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/assignees{/user}","branches_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/branches{/branch}","tags_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/tags","blobs_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/git/refs{/sha}","trees_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/statuses/{sha}","languages_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/languages","stargazers_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/stargazers","contributors_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/contributors","subscribers_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/subscribers","subscription_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/subscription","commits_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/commits{/sha}","git_commits_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/git/commits{/sha}","comments_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/comments{/number}","issue_comment_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues/comments{/number}","contents_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/contents/{+path}","compare_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/merges","archive_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/downloads","issues_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues{/number}","pulls_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls{/number}","milestones_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/milestones{/number}","notifications_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/labels{/name}","releases_url":"https://api.github.com/repos/NaveenKarippai/image-scraper/releases{/id}","created_at":"2015-08-07T16:44:34Z","updated_at":"2015-09-14T09:36:05Z","pushed_at":"2015-09-14T01:21:31Z","git_url":"git://github.com/NaveenKarippai/image-scraper.git","ssh_url":"git@github.com:NaveenKarippai/image-scraper.git","clone_url":"https://github.com/NaveenKarippai/image-scraper.git","svn_url":"https://github.com/NaveenKarippai/image-scraper","homepage":"","size":184,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1"},"html":{"href":"https://github.com/NaveenKarippai/image-scraper/pull/1"},"issue":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues/1"},"comments":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/NaveenKarippai/image-scraper/statuses/d4b5c40f1a8087bd0bd7c1dfbac2634218d9c822"}}}}