{"action":"created","issue":{"url":"https://api.github.com/repos/maxwellbkwt/projstock/issues/2","repository_url":"https://api.github.com/repos/maxwellbkwt/projstock","labels_url":"https://api.github.com/repos/maxwellbkwt/projstock/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/maxwellbkwt/projstock/issues/2/comments","events_url":"https://api.github.com/repos/maxwellbkwt/projstock/issues/2/events","html_url":"https://github.com/maxwellbkwt/projstock/issues/2","id":370073658,"node_id":"MDU6SXNzdWUzNzAwNzM2NTg=","number":2,"title":"How to work ?","user":{"login":"Geng812","id":39304725,"node_id":"MDQ6VXNlcjM5MzA0NzI1","avatar_url":"https://avatars1.githubusercontent.com/u/39304725?v=4","gravatar_id":"","url":"https://api.github.com/users/Geng812","html_url":"https://github.com/Geng812","followers_url":"https://api.github.com/users/Geng812/followers","following_url":"https://api.github.com/users/Geng812/following{/other_user}","gists_url":"https://api.github.com/users/Geng812/gists{/gist_id}","starred_url":"https://api.github.com/users/Geng812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geng812/subscriptions","organizations_url":"https://api.github.com/users/Geng812/orgs","repos_url":"https://api.github.com/users/Geng812/repos","events_url":"https://api.github.com/users/Geng812/events{/privacy}","received_events_url":"https://api.github.com/users/Geng812/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-15T09:25:56Z","updated_at":"2018-10-17T15:42:39Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"what is project goal?\r\nhow to work ?\r\n"},"comment":{"url":"https://api.github.com/repos/maxwellbkwt/projstock/issues/comments/430680655","html_url":"https://github.com/maxwellbkwt/projstock/issues/2#issuecomment-430680655","issue_url":"https://api.github.com/repos/maxwellbkwt/projstock/issues/2","id":430680655,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDY4MDY1NQ==","user":{"login":"maxwellbkwt","id":9671747,"node_id":"MDQ6VXNlcjk2NzE3NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/9671747?v=4","gravatar_id":"","url":"https://api.github.com/users/maxwellbkwt","html_url":"https://github.com/maxwellbkwt","followers_url":"https://api.github.com/users/maxwellbkwt/followers","following_url":"https://api.github.com/users/maxwellbkwt/following{/other_user}","gists_url":"https://api.github.com/users/maxwellbkwt/gists{/gist_id}","starred_url":"https://api.github.com/users/maxwellbkwt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxwellbkwt/subscriptions","organizations_url":"https://api.github.com/users/maxwellbkwt/orgs","repos_url":"https://api.github.com/users/maxwellbkwt/repos","events_url":"https://api.github.com/users/maxwellbkwt/events{/privacy}","received_events_url":"https://api.github.com/users/maxwellbkwt/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T15:42:39Z","updated_at":"2018-10-17T15:42:39Z","author_association":"OWNER","body":"from dataparse import get_webmsg\r\ntest123=get_webmsg(2018,10,2454)\r\nTraceback (most recent call last):\r\n  File \"<input>\", line 1, in <module>\r\n  File \"/Users/blackwhite/PycharmProjects/projstock/dataparse.py\", line 6, in get_webmsg\r\n    date = str (year) + \"{0:0=2d}\".format(month) +'01' ## format is yyyymmdd\r\nUnboundLocalError: local variable 'date' referenced before assignment\r\nyear=2018\r\nmonth=10\r\ndate = str (year) + \"{0:0=2d}\".format(month) +'01' \r\ndate\r\n'20181001'\r\nsid=str(2454)\r\nurl_twse = 'http://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=' + date + '&stockNo=' + sid\r\n"}}
{"actor":{"display_login":"maxwellbkwt"}}