{"action":"created","comment":{"url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/comments/24387165","id":24387165,"diff_hunk":"@@ -3,3 +3,30 @@\n input:          the name of a configuration file containing a list of source URLs and a list of keywords for searching\n output:         (to file) a list of article titles and their corresponding URLs\n '''\n+\n+from load_keywords_and_URL_list import loadSourceList\n+\n+def file_check(filename):\n+\ttry:\n+\t\tf = open(filename)\n+\t\tf.close()\n+\t\treturn True\n+\texcept IOError as e:\n+\t\treturn False\t\n+\n+def request_filename(filetype):\n+\tinputrequest = \"Please input the filename that contains the %s list\\n\" % (filetype)\n+\tfile = raw_input(inputrequest)\n+\twhile file_check(file) == False:\n+\t \tprint \"This file does not exist.\\n\"\n+\t \tfile = raw_input(inputrequest)\n+ \treturn file\n+\n+urlFile = request_filename(\"url\")\n+keywordFile = request_filename(\"keyword\")\n+\n+urlList = loadSourceList(urlFile)\n+keywordList = loadSourceList(keywordFile)\n+\n+print urlList","path":"Python/webscraper.py","position":29,"original_position":29,"commit_id":"7af7ceb360dc47cff70a7a5f3bda854dbf7dbb12","original_commit_id":"7af7ceb360dc47cff70a7a5f3bda854dbf7dbb12","user":{"login":"erinkeith","id":2504089,"avatar_url":"https://avatars.githubusercontent.com/u/2504089?v=3","gravatar_id":"","url":"https://api.github.com/users/erinkeith","html_url":"https://github.com/erinkeith","followers_url":"https://api.github.com/users/erinkeith/followers","following_url":"https://api.github.com/users/erinkeith/following{/other_user}","gists_url":"https://api.github.com/users/erinkeith/gists{/gist_id}","starred_url":"https://api.github.com/users/erinkeith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinkeith/subscriptions","organizations_url":"https://api.github.com/users/erinkeith/orgs","repos_url":"https://api.github.com/users/erinkeith/repos","events_url":"https://api.github.com/users/erinkeith/events{/privacy}","received_events_url":"https://api.github.com/users/erinkeith/received_events","type":"User","site_admin":false},"body":"Is this part of the script or for testing?","created_at":"2015-02-10T03:37:46Z","updated_at":"2015-02-10T03:37:46Z","html_url":"https://github.com/womenwhocode-renotahoe/Woogle/pull/12#discussion_r24387165","pull_request_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/comments/24387165"},"html":{"href":"https://github.com/womenwhocode-renotahoe/Woogle/pull/12#discussion_r24387165"},"pull_request":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12","id":27897998,"html_url":"https://github.com/womenwhocode-renotahoe/Woogle/pull/12","diff_url":"https://github.com/womenwhocode-renotahoe/Woogle/pull/12.diff","patch_url":"https://github.com/womenwhocode-renotahoe/Woogle/pull/12.patch","issue_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/12","number":12,"state":"open","locked":false,"title":"Kerry","user":{"login":"britnidesigns","id":6564393,"avatar_url":"https://avatars.githubusercontent.com/u/6564393?v=3","gravatar_id":"","url":"https://api.github.com/users/britnidesigns","html_url":"https://github.com/britnidesigns","followers_url":"https://api.github.com/users/britnidesigns/followers","following_url":"https://api.github.com/users/britnidesigns/following{/other_user}","gists_url":"https://api.github.com/users/britnidesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/britnidesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britnidesigns/subscriptions","organizations_url":"https://api.github.com/users/britnidesigns/orgs","repos_url":"https://api.github.com/users/britnidesigns/repos","events_url":"https://api.github.com/users/britnidesigns/events{/privacy}","received_events_url":"https://api.github.com/users/britnidesigns/received_events","type":"User","site_admin":false},"body":"Function for loading a txt file of keywords or URLs and returning a list","created_at":"2015-01-23T03:00:51Z","updated_at":"2015-02-10T03:37:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec064221916b207bd35abced583302d5abd3ec3f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12/commits","review_comments_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12/comments","review_comment_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/12/comments","statuses_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/statuses/7af7ceb360dc47cff70a7a5f3bda854dbf7dbb12","head":{"label":"womenwhocode-renotahoe:Kerry","ref":"Kerry","sha":"7af7ceb360dc47cff70a7a5f3bda854dbf7dbb12","user":{"login":"womenwhocode-renotahoe","id":8308081,"avatar_url":"https://avatars.githubusercontent.com/u/8308081?v=3","gravatar_id":"","url":"https://api.github.com/users/womenwhocode-renotahoe","html_url":"https://github.com/womenwhocode-renotahoe","followers_url":"https://api.github.com/users/womenwhocode-renotahoe/followers","following_url":"https://api.github.com/users/womenwhocode-renotahoe/following{/other_user}","gists_url":"https://api.github.com/users/womenwhocode-renotahoe/gists{/gist_id}","starred_url":"https://api.github.com/users/womenwhocode-renotahoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/womenwhocode-renotahoe/subscriptions","organizations_url":"https://api.github.com/users/womenwhocode-renotahoe/orgs","repos_url":"https://api.github.com/users/womenwhocode-renotahoe/repos","events_url":"https://api.github.com/users/womenwhocode-renotahoe/events{/privacy}","received_events_url":"https://api.github.com/users/womenwhocode-renotahoe/received_events","type":"Organization","site_admin":false},"repo":{"id":26546268,"name":"Woogle","full_name":"womenwhocode-renotahoe/Woogle","owner":{"login":"womenwhocode-renotahoe","id":8308081,"avatar_url":"https://avatars.githubusercontent.com/u/8308081?v=3","gravatar_id":"","url":"https://api.github.com/users/womenwhocode-renotahoe","html_url":"https://github.com/womenwhocode-renotahoe","followers_url":"https://api.github.com/users/womenwhocode-renotahoe/followers","following_url":"https://api.github.com/users/womenwhocode-renotahoe/following{/other_user}","gists_url":"https://api.github.com/users/womenwhocode-renotahoe/gists{/gist_id}","starred_url":"https://api.github.com/users/womenwhocode-renotahoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/womenwhocode-renotahoe/subscriptions","organizations_url":"https://api.github.com/users/womenwhocode-renotahoe/orgs","repos_url":"https://api.github.com/users/womenwhocode-renotahoe/repos","events_url":"https://api.github.com/users/womenwhocode-renotahoe/events{/privacy}","received_events_url":"https://api.github.com/users/womenwhocode-renotahoe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/womenwhocode-renotahoe/Woogle","description":"Python, SQL, JavaScript project","fork":false,"url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle","forks_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/forks","keys_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/teams","hooks_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/hooks","issue_events_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/events{/number}","events_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/events","assignees_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/assignees{/user}","branches_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/branches{/branch}","tags_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/tags","blobs_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/refs{/sha}","trees_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/statuses/{sha}","languages_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/languages","stargazers_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/stargazers","contributors_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/contributors","subscribers_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/subscribers","subscription_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/subscription","commits_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/commits{/sha}","git_commits_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/commits{/sha}","comments_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/comments{/number}","issue_comment_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/comments/{number}","contents_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/contents/{+path}","compare_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/merges","archive_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/downloads","issues_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues{/number}","pulls_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls{/number}","milestones_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/milestones{/number}","notifications_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/labels{/name}","releases_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/releases{/id}","created_at":"2014-11-12T16:58:29Z","updated_at":"2015-01-29T01:52:14Z","pushed_at":"2015-01-29T01:52:14Z","git_url":"git://github.com/womenwhocode-renotahoe/Woogle.git","ssh_url":"git@github.com:womenwhocode-renotahoe/Woogle.git","clone_url":"https://github.com/womenwhocode-renotahoe/Woogle.git","svn_url":"https://github.com/womenwhocode-renotahoe/Woogle","homepage":null,"size":460,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"womenwhocode-renotahoe:master","ref":"master","sha":"ae352fd9ca39f52c80509c714cbe1a7e28e696b9","user":{"login":"womenwhocode-renotahoe","id":8308081,"avatar_url":"https://avatars.githubusercontent.com/u/8308081?v=3","gravatar_id":"","url":"https://api.github.com/users/womenwhocode-renotahoe","html_url":"https://github.com/womenwhocode-renotahoe","followers_url":"https://api.github.com/users/womenwhocode-renotahoe/followers","following_url":"https://api.github.com/users/womenwhocode-renotahoe/following{/other_user}","gists_url":"https://api.github.com/users/womenwhocode-renotahoe/gists{/gist_id}","starred_url":"https://api.github.com/users/womenwhocode-renotahoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/womenwhocode-renotahoe/subscriptions","organizations_url":"https://api.github.com/users/womenwhocode-renotahoe/orgs","repos_url":"https://api.github.com/users/womenwhocode-renotahoe/repos","events_url":"https://api.github.com/users/womenwhocode-renotahoe/events{/privacy}","received_events_url":"https://api.github.com/users/womenwhocode-renotahoe/received_events","type":"Organization","site_admin":false},"repo":{"id":26546268,"name":"Woogle","full_name":"womenwhocode-renotahoe/Woogle","owner":{"login":"womenwhocode-renotahoe","id":8308081,"avatar_url":"https://avatars.githubusercontent.com/u/8308081?v=3","gravatar_id":"","url":"https://api.github.com/users/womenwhocode-renotahoe","html_url":"https://github.com/womenwhocode-renotahoe","followers_url":"https://api.github.com/users/womenwhocode-renotahoe/followers","following_url":"https://api.github.com/users/womenwhocode-renotahoe/following{/other_user}","gists_url":"https://api.github.com/users/womenwhocode-renotahoe/gists{/gist_id}","starred_url":"https://api.github.com/users/womenwhocode-renotahoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/womenwhocode-renotahoe/subscriptions","organizations_url":"https://api.github.com/users/womenwhocode-renotahoe/orgs","repos_url":"https://api.github.com/users/womenwhocode-renotahoe/repos","events_url":"https://api.github.com/users/womenwhocode-renotahoe/events{/privacy}","received_events_url":"https://api.github.com/users/womenwhocode-renotahoe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/womenwhocode-renotahoe/Woogle","description":"Python, SQL, JavaScript project","fork":false,"url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle","forks_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/forks","keys_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/teams","hooks_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/hooks","issue_events_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/events{/number}","events_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/events","assignees_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/assignees{/user}","branches_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/branches{/branch}","tags_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/tags","blobs_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/refs{/sha}","trees_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/statuses/{sha}","languages_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/languages","stargazers_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/stargazers","contributors_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/contributors","subscribers_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/subscribers","subscription_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/subscription","commits_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/commits{/sha}","git_commits_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/git/commits{/sha}","comments_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/comments{/number}","issue_comment_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/comments/{number}","contents_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/contents/{+path}","compare_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/merges","archive_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/downloads","issues_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues{/number}","pulls_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls{/number}","milestones_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/milestones{/number}","notifications_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/labels{/name}","releases_url":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/releases{/id}","created_at":"2014-11-12T16:58:29Z","updated_at":"2015-01-29T01:52:14Z","pushed_at":"2015-01-29T01:52:14Z","git_url":"git://github.com/womenwhocode-renotahoe/Woogle.git","ssh_url":"git@github.com:womenwhocode-renotahoe/Woogle.git","clone_url":"https://github.com/womenwhocode-renotahoe/Woogle.git","svn_url":"https://github.com/womenwhocode-renotahoe/Woogle","homepage":null,"size":460,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12"},"html":{"href":"https://github.com/womenwhocode-renotahoe/Woogle/pull/12"},"issue":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/12"},"comments":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/womenwhocode-renotahoe/Woogle/statuses/7af7ceb360dc47cff70a7a5f3bda854dbf7dbb12"}}}}