{"action":"created","comment":{"url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/comments/96584489","pull_request_review_id":17169284,"id":96584489,"diff_hunk":"@@ -43,32 +43,23 @@ def crawl_credit(username, password):\n     grade_response.raise_for_status()\n     grade_list = grade_response.json()['GRD_SCOR401']\n \n-    semester_serial = {\n-        '1학기': '1',\n-        '2학기': '2',\n-        '여름학기': 'S',\n-        '겨울학기': 'W',\n+    semester_name = {\n+        'U000200001U000300001': '1',\n+        'U000200001U000300002': 'S',\n+        'U000200002U000300001': '2',\n+        'U000200002U000300002': 'W',\n     }\n \n-    for i, item in enumerate(grade_list):\n-        item['shtmDetaShtm'] = semester_serial[item['shtmDetaShtm']]\n-        grade_list[i] = item\n+    def refine(raw):\n+        return {\n+            'year': int(raw['schyy']),\n+            'semester': semester_name[raw['shtmFg'] + raw['detaShtmFg']],\n+            'code': raw['sbjtCd'],\n+            'number': raw['ltNo'],\n+            'title': raw['sbjtNm'],\n+            'credit': raw['acqPnt'],","path":"backend/core/crawler.py","position":26,"original_position":26,"commit_id":"e36b2d3db91e924280ac368a26cf45736cee6ca1","original_commit_id":"e36b2d3db91e924280ac368a26cf45736cee6ca1","user":{"login":"Jhuni0123","id":16764073,"avatar_url":"https://avatars.githubusercontent.com/u/16764073?v=3","gravatar_id":"","url":"https://api.github.com/users/Jhuni0123","html_url":"https://github.com/Jhuni0123","followers_url":"https://api.github.com/users/Jhuni0123/followers","following_url":"https://api.github.com/users/Jhuni0123/following{/other_user}","gists_url":"https://api.github.com/users/Jhuni0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Jhuni0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jhuni0123/subscriptions","organizations_url":"https://api.github.com/users/Jhuni0123/orgs","repos_url":"https://api.github.com/users/Jhuni0123/repos","events_url":"https://api.github.com/users/Jhuni0123/events{/privacy}","received_events_url":"https://api.github.com/users/Jhuni0123/received_events","type":"User","site_admin":false},"body":"That is already integer.","created_at":"2017-01-18T08:23:21Z","updated_at":"2017-01-18T08:23:21Z","html_url":"https://github.com/LastOne817/graduate-adventure/pull/27#discussion_r96584489","pull_request_url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/comments/96584489"},"html":{"href":"https://github.com/LastOne817/graduate-adventure/pull/27#discussion_r96584489"},"pull_request":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27","id":101839414,"html_url":"https://github.com/LastOne817/graduate-adventure/pull/27","diff_url":"https://github.com/LastOne817/graduate-adventure/pull/27.diff","patch_url":"https://github.com/LastOne817/graduate-adventure/pull/27.patch","issue_url":"https://api.github.com/repos/LastOne817/graduate-adventure/issues/27","number":27,"state":"open","locked":false,"title":"Parse taking info file & unify format","user":{"login":"Jhuni0123","id":16764073,"avatar_url":"https://avatars.githubusercontent.com/u/16764073?v=3","gravatar_id":"","url":"https://api.github.com/users/Jhuni0123","html_url":"https://github.com/Jhuni0123","followers_url":"https://api.github.com/users/Jhuni0123/followers","following_url":"https://api.github.com/users/Jhuni0123/following{/other_user}","gists_url":"https://api.github.com/users/Jhuni0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Jhuni0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jhuni0123/subscriptions","organizations_url":"https://api.github.com/users/Jhuni0123/orgs","repos_url":"https://api.github.com/users/Jhuni0123/repos","events_url":"https://api.github.com/users/Jhuni0123/events{/privacy}","received_events_url":"https://api.github.com/users/Jhuni0123/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-17T10:54:03Z","updated_at":"2017-01-18T08:23:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6e600eb90a4fc930c75b6862d11828b01aabd75","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27/commits","review_comments_url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27/comments","review_comment_url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LastOne817/graduate-adventure/issues/27/comments","statuses_url":"https://api.github.com/repos/LastOne817/graduate-adventure/statuses/e36b2d3db91e924280ac368a26cf45736cee6ca1","head":{"label":"Jhuni0123:parser","ref":"parser","sha":"e36b2d3db91e924280ac368a26cf45736cee6ca1","user":{"login":"Jhuni0123","id":16764073,"avatar_url":"https://avatars.githubusercontent.com/u/16764073?v=3","gravatar_id":"","url":"https://api.github.com/users/Jhuni0123","html_url":"https://github.com/Jhuni0123","followers_url":"https://api.github.com/users/Jhuni0123/followers","following_url":"https://api.github.com/users/Jhuni0123/following{/other_user}","gists_url":"https://api.github.com/users/Jhuni0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Jhuni0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jhuni0123/subscriptions","organizations_url":"https://api.github.com/users/Jhuni0123/orgs","repos_url":"https://api.github.com/users/Jhuni0123/repos","events_url":"https://api.github.com/users/Jhuni0123/events{/privacy}","received_events_url":"https://api.github.com/users/Jhuni0123/received_events","type":"User","site_admin":false},"repo":{"id":78715817,"name":"graduate-adventure","full_name":"Jhuni0123/graduate-adventure","owner":{"login":"Jhuni0123","id":16764073,"avatar_url":"https://avatars.githubusercontent.com/u/16764073?v=3","gravatar_id":"","url":"https://api.github.com/users/Jhuni0123","html_url":"https://github.com/Jhuni0123","followers_url":"https://api.github.com/users/Jhuni0123/followers","following_url":"https://api.github.com/users/Jhuni0123/following{/other_user}","gists_url":"https://api.github.com/users/Jhuni0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Jhuni0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jhuni0123/subscriptions","organizations_url":"https://api.github.com/users/Jhuni0123/orgs","repos_url":"https://api.github.com/users/Jhuni0123/repos","events_url":"https://api.github.com/users/Jhuni0123/events{/privacy}","received_events_url":"https://api.github.com/users/Jhuni0123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jhuni0123/graduate-adventure","description":"Graduation Simulator for SNUCSE students","fork":true,"url":"https://api.github.com/repos/Jhuni0123/graduate-adventure","forks_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/forks","keys_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/teams","hooks_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/hooks","issue_events_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/issues/events{/number}","events_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/events","assignees_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/assignees{/user}","branches_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/branches{/branch}","tags_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/tags","blobs_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/statuses/{sha}","languages_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/languages","stargazers_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/stargazers","contributors_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/contributors","subscribers_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/subscribers","subscription_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/subscription","commits_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/contents/{+path}","compare_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/merges","archive_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/downloads","issues_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/issues{/number}","pulls_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/pulls{/number}","milestones_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/milestones{/number}","notifications_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/labels{/name}","releases_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/releases{/id}","deployments_url":"https://api.github.com/repos/Jhuni0123/graduate-adventure/deployments","created_at":"2017-01-12T06:29:14Z","updated_at":"2017-01-12T17:40:18Z","pushed_at":"2017-01-17T12:39:50Z","git_url":"git://github.com/Jhuni0123/graduate-adventure.git","ssh_url":"git@github.com:Jhuni0123/graduate-adventure.git","clone_url":"https://github.com/Jhuni0123/graduate-adventure.git","svn_url":"https://github.com/Jhuni0123/graduate-adventure","homepage":null,"size":52,"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":"LastOne817:master","ref":"master","sha":"ee514590f7e67a04a2bc21f05ff5bb3038c62c8d","user":{"login":"LastOne817","id":8349037,"avatar_url":"https://avatars.githubusercontent.com/u/8349037?v=3","gravatar_id":"","url":"https://api.github.com/users/LastOne817","html_url":"https://github.com/LastOne817","followers_url":"https://api.github.com/users/LastOne817/followers","following_url":"https://api.github.com/users/LastOne817/following{/other_user}","gists_url":"https://api.github.com/users/LastOne817/gists{/gist_id}","starred_url":"https://api.github.com/users/LastOne817/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LastOne817/subscriptions","organizations_url":"https://api.github.com/users/LastOne817/orgs","repos_url":"https://api.github.com/users/LastOne817/repos","events_url":"https://api.github.com/users/LastOne817/events{/privacy}","received_events_url":"https://api.github.com/users/LastOne817/received_events","type":"User","site_admin":false},"repo":{"id":78082785,"name":"graduate-adventure","full_name":"LastOne817/graduate-adventure","owner":{"login":"LastOne817","id":8349037,"avatar_url":"https://avatars.githubusercontent.com/u/8349037?v=3","gravatar_id":"","url":"https://api.github.com/users/LastOne817","html_url":"https://github.com/LastOne817","followers_url":"https://api.github.com/users/LastOne817/followers","following_url":"https://api.github.com/users/LastOne817/following{/other_user}","gists_url":"https://api.github.com/users/LastOne817/gists{/gist_id}","starred_url":"https://api.github.com/users/LastOne817/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LastOne817/subscriptions","organizations_url":"https://api.github.com/users/LastOne817/orgs","repos_url":"https://api.github.com/users/LastOne817/repos","events_url":"https://api.github.com/users/LastOne817/events{/privacy}","received_events_url":"https://api.github.com/users/LastOne817/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LastOne817/graduate-adventure","description":"Graduation Simulator for SNUCSE students","fork":false,"url":"https://api.github.com/repos/LastOne817/graduate-adventure","forks_url":"https://api.github.com/repos/LastOne817/graduate-adventure/forks","keys_url":"https://api.github.com/repos/LastOne817/graduate-adventure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LastOne817/graduate-adventure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LastOne817/graduate-adventure/teams","hooks_url":"https://api.github.com/repos/LastOne817/graduate-adventure/hooks","issue_events_url":"https://api.github.com/repos/LastOne817/graduate-adventure/issues/events{/number}","events_url":"https://api.github.com/repos/LastOne817/graduate-adventure/events","assignees_url":"https://api.github.com/repos/LastOne817/graduate-adventure/assignees{/user}","branches_url":"https://api.github.com/repos/LastOne817/graduate-adventure/branches{/branch}","tags_url":"https://api.github.com/repos/LastOne817/graduate-adventure/tags","blobs_url":"https://api.github.com/repos/LastOne817/graduate-adventure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LastOne817/graduate-adventure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LastOne817/graduate-adventure/git/refs{/sha}","trees_url":"https://api.github.com/repos/LastOne817/graduate-adventure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LastOne817/graduate-adventure/statuses/{sha}","languages_url":"https://api.github.com/repos/LastOne817/graduate-adventure/languages","stargazers_url":"https://api.github.com/repos/LastOne817/graduate-adventure/stargazers","contributors_url":"https://api.github.com/repos/LastOne817/graduate-adventure/contributors","subscribers_url":"https://api.github.com/repos/LastOne817/graduate-adventure/subscribers","subscription_url":"https://api.github.com/repos/LastOne817/graduate-adventure/subscription","commits_url":"https://api.github.com/repos/LastOne817/graduate-adventure/commits{/sha}","git_commits_url":"https://api.github.com/repos/LastOne817/graduate-adventure/git/commits{/sha}","comments_url":"https://api.github.com/repos/LastOne817/graduate-adventure/comments{/number}","issue_comment_url":"https://api.github.com/repos/LastOne817/graduate-adventure/issues/comments{/number}","contents_url":"https://api.github.com/repos/LastOne817/graduate-adventure/contents/{+path}","compare_url":"https://api.github.com/repos/LastOne817/graduate-adventure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LastOne817/graduate-adventure/merges","archive_url":"https://api.github.com/repos/LastOne817/graduate-adventure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LastOne817/graduate-adventure/downloads","issues_url":"https://api.github.com/repos/LastOne817/graduate-adventure/issues{/number}","pulls_url":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls{/number}","milestones_url":"https://api.github.com/repos/LastOne817/graduate-adventure/milestones{/number}","notifications_url":"https://api.github.com/repos/LastOne817/graduate-adventure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LastOne817/graduate-adventure/labels{/name}","releases_url":"https://api.github.com/repos/LastOne817/graduate-adventure/releases{/id}","deployments_url":"https://api.github.com/repos/LastOne817/graduate-adventure/deployments","created_at":"2017-01-05T05:36:00Z","updated_at":"2017-01-13T05:29:41Z","pushed_at":"2017-01-17T12:39:50Z","git_url":"git://github.com/LastOne817/graduate-adventure.git","ssh_url":"git@github.com:LastOne817/graduate-adventure.git","clone_url":"https://github.com/LastOne817/graduate-adventure.git","svn_url":"https://github.com/LastOne817/graduate-adventure","homepage":null,"size":49,"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":8,"forks":3,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27"},"html":{"href":"https://github.com/LastOne817/graduate-adventure/pull/27"},"issue":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/issues/27"},"comments":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/LastOne817/graduate-adventure/statuses/e36b2d3db91e924280ac368a26cf45736cee6ca1"}}}}
{"actor":{"display_login":"Jhuni0123"}}