{"action":"created","comment":{"url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/comments/44460278","id":44460278,"diff_hunk":"@@ -294,7 +294,7 @@ def _add_extra_suffixes(self, suffixes):\n \n @wraps(TLD_EXTRACTOR.__call__)\n def extract(url):\n-    return TLD_EXTRACTOR(url)\n+    return TLD_EXTRACTOR(url.strip())","path":"tldextract/tldextract.py","position":5,"original_position":5,"commit_id":"f5ea34b2a8b6d566c44118376d71bfceeea88ab8","original_commit_id":"f5ea34b2a8b6d566c44118376d71bfceeea88ab8","user":{"login":"john-kurkowski","id":299487,"avatar_url":"https://avatars.githubusercontent.com/u/299487?v=3","gravatar_id":"","url":"https://api.github.com/users/john-kurkowski","html_url":"https://github.com/john-kurkowski","followers_url":"https://api.github.com/users/john-kurkowski/followers","following_url":"https://api.github.com/users/john-kurkowski/following{/other_user}","gists_url":"https://api.github.com/users/john-kurkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/john-kurkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-kurkowski/subscriptions","organizations_url":"https://api.github.com/users/john-kurkowski/orgs","repos_url":"https://api.github.com/users/john-kurkowski/repos","events_url":"https://api.github.com/users/john-kurkowski/events{/privacy}","received_events_url":"https://api.github.com/users/john-kurkowski/received_events","type":"User","site_admin":false},"body":"What about URLs passed to a `TldExtract` instance directly?","created_at":"2015-11-10T20:29:16Z","updated_at":"2015-11-10T20:29:16Z","html_url":"https://github.com/john-kurkowski/tldextract/pull/76#discussion_r44460278","pull_request_url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/comments/44460278"},"html":{"href":"https://github.com/john-kurkowski/tldextract/pull/76#discussion_r44460278"},"pull_request":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76","id":50068016,"html_url":"https://github.com/john-kurkowski/tldextract/pull/76","diff_url":"https://github.com/john-kurkowski/tldextract/pull/76.diff","patch_url":"https://github.com/john-kurkowski/tldextract/pull/76.patch","issue_url":"https://api.github.com/repos/john-kurkowski/tldextract/issues/76","number":76,"state":"open","locked":false,"title":"strip whitespace from urls","user":{"login":"evanv","id":3965137,"avatar_url":"https://avatars.githubusercontent.com/u/3965137?v=3","gravatar_id":"","url":"https://api.github.com/users/evanv","html_url":"https://github.com/evanv","followers_url":"https://api.github.com/users/evanv/followers","following_url":"https://api.github.com/users/evanv/following{/other_user}","gists_url":"https://api.github.com/users/evanv/gists{/gist_id}","starred_url":"https://api.github.com/users/evanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanv/subscriptions","organizations_url":"https://api.github.com/users/evanv/orgs","repos_url":"https://api.github.com/users/evanv/repos","events_url":"https://api.github.com/users/evanv/events{/privacy}","received_events_url":"https://api.github.com/users/evanv/received_events","type":"User","site_admin":false},"body":"closes https://github.com/john-kurkowski/tldextract/issues/75","created_at":"2015-11-08T19:41:38Z","updated_at":"2015-11-10T20:29:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c71da3a8c54f4318a3d004114fa1d1bf46952dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76/commits","review_comments_url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76/comments","review_comment_url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/comments{/number}","comments_url":"https://api.github.com/repos/john-kurkowski/tldextract/issues/76/comments","statuses_url":"https://api.github.com/repos/john-kurkowski/tldextract/statuses/f5ea34b2a8b6d566c44118376d71bfceeea88ab8","head":{"label":"evanv:master","ref":"master","sha":"f5ea34b2a8b6d566c44118376d71bfceeea88ab8","user":{"login":"evanv","id":3965137,"avatar_url":"https://avatars.githubusercontent.com/u/3965137?v=3","gravatar_id":"","url":"https://api.github.com/users/evanv","html_url":"https://github.com/evanv","followers_url":"https://api.github.com/users/evanv/followers","following_url":"https://api.github.com/users/evanv/following{/other_user}","gists_url":"https://api.github.com/users/evanv/gists{/gist_id}","starred_url":"https://api.github.com/users/evanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanv/subscriptions","organizations_url":"https://api.github.com/users/evanv/orgs","repos_url":"https://api.github.com/users/evanv/repos","events_url":"https://api.github.com/users/evanv/events{/privacy}","received_events_url":"https://api.github.com/users/evanv/received_events","type":"User","site_admin":false},"repo":{"id":45563774,"name":"tldextract","full_name":"evanv/tldextract","owner":{"login":"evanv","id":3965137,"avatar_url":"https://avatars.githubusercontent.com/u/3965137?v=3","gravatar_id":"","url":"https://api.github.com/users/evanv","html_url":"https://github.com/evanv","followers_url":"https://api.github.com/users/evanv/followers","following_url":"https://api.github.com/users/evanv/following{/other_user}","gists_url":"https://api.github.com/users/evanv/gists{/gist_id}","starred_url":"https://api.github.com/users/evanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanv/subscriptions","organizations_url":"https://api.github.com/users/evanv/orgs","repos_url":"https://api.github.com/users/evanv/repos","events_url":"https://api.github.com/users/evanv/events{/privacy}","received_events_url":"https://api.github.com/users/evanv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evanv/tldextract","description":"Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List.","fork":true,"url":"https://api.github.com/repos/evanv/tldextract","forks_url":"https://api.github.com/repos/evanv/tldextract/forks","keys_url":"https://api.github.com/repos/evanv/tldextract/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evanv/tldextract/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evanv/tldextract/teams","hooks_url":"https://api.github.com/repos/evanv/tldextract/hooks","issue_events_url":"https://api.github.com/repos/evanv/tldextract/issues/events{/number}","events_url":"https://api.github.com/repos/evanv/tldextract/events","assignees_url":"https://api.github.com/repos/evanv/tldextract/assignees{/user}","branches_url":"https://api.github.com/repos/evanv/tldextract/branches{/branch}","tags_url":"https://api.github.com/repos/evanv/tldextract/tags","blobs_url":"https://api.github.com/repos/evanv/tldextract/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evanv/tldextract/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evanv/tldextract/git/refs{/sha}","trees_url":"https://api.github.com/repos/evanv/tldextract/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evanv/tldextract/statuses/{sha}","languages_url":"https://api.github.com/repos/evanv/tldextract/languages","stargazers_url":"https://api.github.com/repos/evanv/tldextract/stargazers","contributors_url":"https://api.github.com/repos/evanv/tldextract/contributors","subscribers_url":"https://api.github.com/repos/evanv/tldextract/subscribers","subscription_url":"https://api.github.com/repos/evanv/tldextract/subscription","commits_url":"https://api.github.com/repos/evanv/tldextract/commits{/sha}","git_commits_url":"https://api.github.com/repos/evanv/tldextract/git/commits{/sha}","comments_url":"https://api.github.com/repos/evanv/tldextract/comments{/number}","issue_comment_url":"https://api.github.com/repos/evanv/tldextract/issues/comments{/number}","contents_url":"https://api.github.com/repos/evanv/tldextract/contents/{+path}","compare_url":"https://api.github.com/repos/evanv/tldextract/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evanv/tldextract/merges","archive_url":"https://api.github.com/repos/evanv/tldextract/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evanv/tldextract/downloads","issues_url":"https://api.github.com/repos/evanv/tldextract/issues{/number}","pulls_url":"https://api.github.com/repos/evanv/tldextract/pulls{/number}","milestones_url":"https://api.github.com/repos/evanv/tldextract/milestones{/number}","notifications_url":"https://api.github.com/repos/evanv/tldextract/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evanv/tldextract/labels{/name}","releases_url":"https://api.github.com/repos/evanv/tldextract/releases{/id}","created_at":"2015-11-04T19:56:48Z","updated_at":"2015-11-04T19:56:49Z","pushed_at":"2015-11-08T19:35:19Z","git_url":"git://github.com/evanv/tldextract.git","ssh_url":"git@github.com:evanv/tldextract.git","clone_url":"https://github.com/evanv/tldextract.git","svn_url":"https://github.com/evanv/tldextract","homepage":"","size":473,"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":"john-kurkowski:master","ref":"master","sha":"c00dc12c8c2de074919c1ace37f892713ac422da","user":{"login":"john-kurkowski","id":299487,"avatar_url":"https://avatars.githubusercontent.com/u/299487?v=3","gravatar_id":"","url":"https://api.github.com/users/john-kurkowski","html_url":"https://github.com/john-kurkowski","followers_url":"https://api.github.com/users/john-kurkowski/followers","following_url":"https://api.github.com/users/john-kurkowski/following{/other_user}","gists_url":"https://api.github.com/users/john-kurkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/john-kurkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-kurkowski/subscriptions","organizations_url":"https://api.github.com/users/john-kurkowski/orgs","repos_url":"https://api.github.com/users/john-kurkowski/repos","events_url":"https://api.github.com/users/john-kurkowski/events{/privacy}","received_events_url":"https://api.github.com/users/john-kurkowski/received_events","type":"User","site_admin":false},"repo":{"id":1413932,"name":"tldextract","full_name":"john-kurkowski/tldextract","owner":{"login":"john-kurkowski","id":299487,"avatar_url":"https://avatars.githubusercontent.com/u/299487?v=3","gravatar_id":"","url":"https://api.github.com/users/john-kurkowski","html_url":"https://github.com/john-kurkowski","followers_url":"https://api.github.com/users/john-kurkowski/followers","following_url":"https://api.github.com/users/john-kurkowski/following{/other_user}","gists_url":"https://api.github.com/users/john-kurkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/john-kurkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-kurkowski/subscriptions","organizations_url":"https://api.github.com/users/john-kurkowski/orgs","repos_url":"https://api.github.com/users/john-kurkowski/repos","events_url":"https://api.github.com/users/john-kurkowski/events{/privacy}","received_events_url":"https://api.github.com/users/john-kurkowski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/john-kurkowski/tldextract","description":"Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List.","fork":false,"url":"https://api.github.com/repos/john-kurkowski/tldextract","forks_url":"https://api.github.com/repos/john-kurkowski/tldextract/forks","keys_url":"https://api.github.com/repos/john-kurkowski/tldextract/keys{/key_id}","collaborators_url":"https://api.github.com/repos/john-kurkowski/tldextract/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/john-kurkowski/tldextract/teams","hooks_url":"https://api.github.com/repos/john-kurkowski/tldextract/hooks","issue_events_url":"https://api.github.com/repos/john-kurkowski/tldextract/issues/events{/number}","events_url":"https://api.github.com/repos/john-kurkowski/tldextract/events","assignees_url":"https://api.github.com/repos/john-kurkowski/tldextract/assignees{/user}","branches_url":"https://api.github.com/repos/john-kurkowski/tldextract/branches{/branch}","tags_url":"https://api.github.com/repos/john-kurkowski/tldextract/tags","blobs_url":"https://api.github.com/repos/john-kurkowski/tldextract/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/john-kurkowski/tldextract/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/john-kurkowski/tldextract/git/refs{/sha}","trees_url":"https://api.github.com/repos/john-kurkowski/tldextract/git/trees{/sha}","statuses_url":"https://api.github.com/repos/john-kurkowski/tldextract/statuses/{sha}","languages_url":"https://api.github.com/repos/john-kurkowski/tldextract/languages","stargazers_url":"https://api.github.com/repos/john-kurkowski/tldextract/stargazers","contributors_url":"https://api.github.com/repos/john-kurkowski/tldextract/contributors","subscribers_url":"https://api.github.com/repos/john-kurkowski/tldextract/subscribers","subscription_url":"https://api.github.com/repos/john-kurkowski/tldextract/subscription","commits_url":"https://api.github.com/repos/john-kurkowski/tldextract/commits{/sha}","git_commits_url":"https://api.github.com/repos/john-kurkowski/tldextract/git/commits{/sha}","comments_url":"https://api.github.com/repos/john-kurkowski/tldextract/comments{/number}","issue_comment_url":"https://api.github.com/repos/john-kurkowski/tldextract/issues/comments{/number}","contents_url":"https://api.github.com/repos/john-kurkowski/tldextract/contents/{+path}","compare_url":"https://api.github.com/repos/john-kurkowski/tldextract/compare/{base}...{head}","merges_url":"https://api.github.com/repos/john-kurkowski/tldextract/merges","archive_url":"https://api.github.com/repos/john-kurkowski/tldextract/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/john-kurkowski/tldextract/downloads","issues_url":"https://api.github.com/repos/john-kurkowski/tldextract/issues{/number}","pulls_url":"https://api.github.com/repos/john-kurkowski/tldextract/pulls{/number}","milestones_url":"https://api.github.com/repos/john-kurkowski/tldextract/milestones{/number}","notifications_url":"https://api.github.com/repos/john-kurkowski/tldextract/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/john-kurkowski/tldextract/labels{/name}","releases_url":"https://api.github.com/repos/john-kurkowski/tldextract/releases{/id}","created_at":"2011-02-26T06:48:00Z","updated_at":"2015-11-10T03:18:51Z","pushed_at":"2015-11-08T19:41:38Z","git_url":"git://github.com/john-kurkowski/tldextract.git","ssh_url":"git@github.com:john-kurkowski/tldextract.git","clone_url":"https://github.com/john-kurkowski/tldextract.git","svn_url":"https://github.com/john-kurkowski/tldextract","homepage":"","size":1095,"stargazers_count":416,"watchers_count":416,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":5,"forks":65,"open_issues":5,"watchers":416,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76"},"html":{"href":"https://github.com/john-kurkowski/tldextract/pull/76"},"issue":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/issues/76"},"comments":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/john-kurkowski/tldextract/statuses/f5ea34b2a8b6d566c44118376d71bfceeea88ab8"}}}}