{"action":"created","comment":{"url":"https://api.github.com/repos/pjessesco/bus_bot/pulls/comments/173701184","pull_request_review_id":102930373,"id":173701184,"diff_hunk":"@@ -40,6 +40,78 @@ def alert_to_user(self,min):\n \n \n #                                      string\n+\n+\n+\n+def bus_search(stn,bus):\n+\tstring =''\n+\ttry:\n+\t\tstn = stn\n+\t\troute = bus\n+\texcept:\n+\t\treturn '제대로 된 값이 아닙니다'\n+\tstationList = []\n+\tresult = []\n+\tlink = 'http://openapi.gbis.go.kr/ws/rest/busstationservice?serviceKey=1234567890&keyword='+stn\n+\tresponse = requests.get(link)\n+\tsoup = BeautifulSoup(response.content,'lxml-xml')\n+\tfor stop in soup.findAll('busStationList'):\n+\t\tstationList += [{stop.find('stationId').string:stop.find('stationName').string}]\n+\tfor stnlist in stationList:\n+\t\tx = list(stnlist.keys())[0]\n+\t\tlink = 'http://openapi.gbis.go.kr/ws/rest/busstationservice/route?serviceKey=1234567890&stationId='+x\n+\t\tresponse = requests.get(link)\n+\t\tsoup = BeautifulSoup(response.content,'lxml-xml')\n+\t\tfor busline in soup.findAll('busRouteList'):\n+\t\t\tif busline.find('routeName').string == route:\n+\t\t\t\trouteId = busline.find('routeId').string\n+\t\t\t\tresult += [[x,{routeId:route}]]\n+\tif result != []:\n+\t\tfor x in result:\n+\t\t\ttemp = 0\n+\t\t\troutenum = list(x[1].keys())[0]\n+\t\t\tlink = 'http://openapi.gbis.go.kr/ws/rest/busarrivalservice/station?serviceKey=1234567890&routeId='+routenum+'&stationId='+x[0]","path":"core.py","position":43,"original_position":43,"commit_id":"f1fdd39faec596ae8551d695b88dc2f27848aae2","original_commit_id":"f1fdd39faec596ae8551d695b88dc2f27848aae2","user":{"login":"pjessesco","id":11532321,"avatar_url":"https://avatars1.githubusercontent.com/u/11532321?v=4","gravatar_id":"","url":"https://api.github.com/users/pjessesco","html_url":"https://github.com/pjessesco","followers_url":"https://api.github.com/users/pjessesco/followers","following_url":"https://api.github.com/users/pjessesco/following{/other_user}","gists_url":"https://api.github.com/users/pjessesco/gists{/gist_id}","starred_url":"https://api.github.com/users/pjessesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjessesco/subscriptions","organizations_url":"https://api.github.com/users/pjessesco/orgs","repos_url":"https://api.github.com/users/pjessesco/repos","events_url":"https://api.github.com/users/pjessesco/events{/privacy}","received_events_url":"https://api.github.com/users/pjessesco/received_events","type":"User","site_admin":false},"body":"여기도","created_at":"2018-03-12T06:17:02Z","updated_at":"2018-03-12T06:36:50Z","html_url":"https://github.com/pjessesco/bus_bot/pull/3#discussion_r173701184","pull_request_url":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pjessesco/bus_bot/pulls/comments/173701184"},"html":{"href":"https://github.com/pjessesco/bus_bot/pull/3#discussion_r173701184"},"pull_request":{"href":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3","id":174251960,"html_url":"https://github.com/pjessesco/bus_bot/pull/3","diff_url":"https://github.com/pjessesco/bus_bot/pull/3.diff","patch_url":"https://github.com/pjessesco/bus_bot/pull/3.patch","issue_url":"https://api.github.com/repos/pjessesco/bus_bot/issues/3","number":3,"state":"open","locked":false,"title":"버스 검색 기능을 추가해보았습니다.","user":{"login":"jil8885","id":10583171,"avatar_url":"https://avatars0.githubusercontent.com/u/10583171?v=4","gravatar_id":"","url":"https://api.github.com/users/jil8885","html_url":"https://github.com/jil8885","followers_url":"https://api.github.com/users/jil8885/followers","following_url":"https://api.github.com/users/jil8885/following{/other_user}","gists_url":"https://api.github.com/users/jil8885/gists{/gist_id}","starred_url":"https://api.github.com/users/jil8885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jil8885/subscriptions","organizations_url":"https://api.github.com/users/jil8885/orgs","repos_url":"https://api.github.com/users/jil8885/repos","events_url":"https://api.github.com/users/jil8885/events{/privacy}","received_events_url":"https://api.github.com/users/jil8885/received_events","type":"User","site_admin":false},"body":"버스 검색 기능을 추가해보았습니다.\r\n검색 지원 대상은\r\n-경기도 내 정류장을 지나가는 마을 버스를 제외한 모든 버스\r\n-서울시내 정류장의 경기도 차적 버스(예.3100/3101)","created_at":"2018-03-12T00:26:31Z","updated_at":"2018-03-12T06:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2e24e151665f886c49a48fad149595145b41690","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3/commits","review_comments_url":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3/comments","review_comment_url":"https://api.github.com/repos/pjessesco/bus_bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pjessesco/bus_bot/issues/3/comments","statuses_url":"https://api.github.com/repos/pjessesco/bus_bot/statuses/f1fdd39faec596ae8551d695b88dc2f27848aae2","head":{"label":"jil8885:master","ref":"master","sha":"f1fdd39faec596ae8551d695b88dc2f27848aae2","user":{"login":"jil8885","id":10583171,"avatar_url":"https://avatars0.githubusercontent.com/u/10583171?v=4","gravatar_id":"","url":"https://api.github.com/users/jil8885","html_url":"https://github.com/jil8885","followers_url":"https://api.github.com/users/jil8885/followers","following_url":"https://api.github.com/users/jil8885/following{/other_user}","gists_url":"https://api.github.com/users/jil8885/gists{/gist_id}","starred_url":"https://api.github.com/users/jil8885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jil8885/subscriptions","organizations_url":"https://api.github.com/users/jil8885/orgs","repos_url":"https://api.github.com/users/jil8885/repos","events_url":"https://api.github.com/users/jil8885/events{/privacy}","received_events_url":"https://api.github.com/users/jil8885/received_events","type":"User","site_admin":false},"repo":{"id":124711117,"name":"bus_bot","full_name":"jil8885/bus_bot","owner":{"login":"jil8885","id":10583171,"avatar_url":"https://avatars0.githubusercontent.com/u/10583171?v=4","gravatar_id":"","url":"https://api.github.com/users/jil8885","html_url":"https://github.com/jil8885","followers_url":"https://api.github.com/users/jil8885/followers","following_url":"https://api.github.com/users/jil8885/following{/other_user}","gists_url":"https://api.github.com/users/jil8885/gists{/gist_id}","starred_url":"https://api.github.com/users/jil8885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jil8885/subscriptions","organizations_url":"https://api.github.com/users/jil8885/orgs","repos_url":"https://api.github.com/users/jil8885/repos","events_url":"https://api.github.com/users/jil8885/events{/privacy}","received_events_url":"https://api.github.com/users/jil8885/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jil8885/bus_bot","description":null,"fork":true,"url":"https://api.github.com/repos/jil8885/bus_bot","forks_url":"https://api.github.com/repos/jil8885/bus_bot/forks","keys_url":"https://api.github.com/repos/jil8885/bus_bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jil8885/bus_bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jil8885/bus_bot/teams","hooks_url":"https://api.github.com/repos/jil8885/bus_bot/hooks","issue_events_url":"https://api.github.com/repos/jil8885/bus_bot/issues/events{/number}","events_url":"https://api.github.com/repos/jil8885/bus_bot/events","assignees_url":"https://api.github.com/repos/jil8885/bus_bot/assignees{/user}","branches_url":"https://api.github.com/repos/jil8885/bus_bot/branches{/branch}","tags_url":"https://api.github.com/repos/jil8885/bus_bot/tags","blobs_url":"https://api.github.com/repos/jil8885/bus_bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jil8885/bus_bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jil8885/bus_bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jil8885/bus_bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jil8885/bus_bot/statuses/{sha}","languages_url":"https://api.github.com/repos/jil8885/bus_bot/languages","stargazers_url":"https://api.github.com/repos/jil8885/bus_bot/stargazers","contributors_url":"https://api.github.com/repos/jil8885/bus_bot/contributors","subscribers_url":"https://api.github.com/repos/jil8885/bus_bot/subscribers","subscription_url":"https://api.github.com/repos/jil8885/bus_bot/subscription","commits_url":"https://api.github.com/repos/jil8885/bus_bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jil8885/bus_bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jil8885/bus_bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jil8885/bus_bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jil8885/bus_bot/contents/{+path}","compare_url":"https://api.github.com/repos/jil8885/bus_bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jil8885/bus_bot/merges","archive_url":"https://api.github.com/repos/jil8885/bus_bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jil8885/bus_bot/downloads","issues_url":"https://api.github.com/repos/jil8885/bus_bot/issues{/number}","pulls_url":"https://api.github.com/repos/jil8885/bus_bot/pulls{/number}","milestones_url":"https://api.github.com/repos/jil8885/bus_bot/milestones{/number}","notifications_url":"https://api.github.com/repos/jil8885/bus_bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jil8885/bus_bot/labels{/name}","releases_url":"https://api.github.com/repos/jil8885/bus_bot/releases{/id}","deployments_url":"https://api.github.com/repos/jil8885/bus_bot/deployments","created_at":"2018-03-11T00:50:39Z","updated_at":"2018-03-11T00:50:41Z","pushed_at":"2018-03-12T00:25:36Z","git_url":"git://github.com/jil8885/bus_bot.git","ssh_url":"git@github.com:jil8885/bus_bot.git","clone_url":"https://github.com/jil8885/bus_bot.git","svn_url":"https://github.com/jil8885/bus_bot","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pjessesco:master","ref":"master","sha":"cbd934d8ccebd46d117f2ad43db1f936f1acb5c8","user":{"login":"pjessesco","id":11532321,"avatar_url":"https://avatars1.githubusercontent.com/u/11532321?v=4","gravatar_id":"","url":"https://api.github.com/users/pjessesco","html_url":"https://github.com/pjessesco","followers_url":"https://api.github.com/users/pjessesco/followers","following_url":"https://api.github.com/users/pjessesco/following{/other_user}","gists_url":"https://api.github.com/users/pjessesco/gists{/gist_id}","starred_url":"https://api.github.com/users/pjessesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjessesco/subscriptions","organizations_url":"https://api.github.com/users/pjessesco/orgs","repos_url":"https://api.github.com/users/pjessesco/repos","events_url":"https://api.github.com/users/pjessesco/events{/privacy}","received_events_url":"https://api.github.com/users/pjessesco/received_events","type":"User","site_admin":false},"repo":{"id":116484558,"name":"bus_bot","full_name":"pjessesco/bus_bot","owner":{"login":"pjessesco","id":11532321,"avatar_url":"https://avatars1.githubusercontent.com/u/11532321?v=4","gravatar_id":"","url":"https://api.github.com/users/pjessesco","html_url":"https://github.com/pjessesco","followers_url":"https://api.github.com/users/pjessesco/followers","following_url":"https://api.github.com/users/pjessesco/following{/other_user}","gists_url":"https://api.github.com/users/pjessesco/gists{/gist_id}","starred_url":"https://api.github.com/users/pjessesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjessesco/subscriptions","organizations_url":"https://api.github.com/users/pjessesco/orgs","repos_url":"https://api.github.com/users/pjessesco/repos","events_url":"https://api.github.com/users/pjessesco/events{/privacy}","received_events_url":"https://api.github.com/users/pjessesco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pjessesco/bus_bot","description":null,"fork":false,"url":"https://api.github.com/repos/pjessesco/bus_bot","forks_url":"https://api.github.com/repos/pjessesco/bus_bot/forks","keys_url":"https://api.github.com/repos/pjessesco/bus_bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pjessesco/bus_bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pjessesco/bus_bot/teams","hooks_url":"https://api.github.com/repos/pjessesco/bus_bot/hooks","issue_events_url":"https://api.github.com/repos/pjessesco/bus_bot/issues/events{/number}","events_url":"https://api.github.com/repos/pjessesco/bus_bot/events","assignees_url":"https://api.github.com/repos/pjessesco/bus_bot/assignees{/user}","branches_url":"https://api.github.com/repos/pjessesco/bus_bot/branches{/branch}","tags_url":"https://api.github.com/repos/pjessesco/bus_bot/tags","blobs_url":"https://api.github.com/repos/pjessesco/bus_bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pjessesco/bus_bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pjessesco/bus_bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/pjessesco/bus_bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pjessesco/bus_bot/statuses/{sha}","languages_url":"https://api.github.com/repos/pjessesco/bus_bot/languages","stargazers_url":"https://api.github.com/repos/pjessesco/bus_bot/stargazers","contributors_url":"https://api.github.com/repos/pjessesco/bus_bot/contributors","subscribers_url":"https://api.github.com/repos/pjessesco/bus_bot/subscribers","subscription_url":"https://api.github.com/repos/pjessesco/bus_bot/subscription","commits_url":"https://api.github.com/repos/pjessesco/bus_bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/pjessesco/bus_bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/pjessesco/bus_bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/pjessesco/bus_bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/pjessesco/bus_bot/contents/{+path}","compare_url":"https://api.github.com/repos/pjessesco/bus_bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pjessesco/bus_bot/merges","archive_url":"https://api.github.com/repos/pjessesco/bus_bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pjessesco/bus_bot/downloads","issues_url":"https://api.github.com/repos/pjessesco/bus_bot/issues{/number}","pulls_url":"https://api.github.com/repos/pjessesco/bus_bot/pulls{/number}","milestones_url":"https://api.github.com/repos/pjessesco/bus_bot/milestones{/number}","notifications_url":"https://api.github.com/repos/pjessesco/bus_bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pjessesco/bus_bot/labels{/name}","releases_url":"https://api.github.com/repos/pjessesco/bus_bot/releases{/id}","deployments_url":"https://api.github.com/repos/pjessesco/bus_bot/deployments","created_at":"2018-01-06T13:20:57Z","updated_at":"2018-02-18T06:43:51Z","pushed_at":"2018-03-12T00:26:32Z","git_url":"git://github.com/pjessesco/bus_bot.git","ssh_url":"git@github.com:pjessesco/bus_bot.git","clone_url":"https://github.com/pjessesco/bus_bot.git","svn_url":"https://github.com/pjessesco/bus_bot","homepage":null,"size":14,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3"},"html":{"href":"https://github.com/pjessesco/bus_bot/pull/3"},"issue":{"href":"https://api.github.com/repos/pjessesco/bus_bot/issues/3"},"comments":{"href":"https://api.github.com/repos/pjessesco/bus_bot/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/pjessesco/bus_bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pjessesco/bus_bot/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/pjessesco/bus_bot/statuses/f1fdd39faec596ae8551d695b88dc2f27848aae2"}},"author_association":"NONE"}}
{"actor":{"display_login":"pjessesco"}}