{"action":"created","issue":{"url":"https://api.github.com/repos/sk1418/zhuaxia/issues/38","repository_url":"https://api.github.com/repos/sk1418/zhuaxia","labels_url":"https://api.github.com/repos/sk1418/zhuaxia/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/sk1418/zhuaxia/issues/38/comments","events_url":"https://api.github.com/repos/sk1418/zhuaxia/issues/38/events","html_url":"https://github.com/sk1418/zhuaxia/issues/38","id":157023165,"number":38,"title":"Problem with proxy","user":{"login":"kobemtl","id":6043647,"avatar_url":"https://avatars.githubusercontent.com/u/6043647?v=3","gravatar_id":"","url":"https://api.github.com/users/kobemtl","html_url":"https://github.com/kobemtl","followers_url":"https://api.github.com/users/kobemtl/followers","following_url":"https://api.github.com/users/kobemtl/following{/other_user}","gists_url":"https://api.github.com/users/kobemtl/gists{/gist_id}","starred_url":"https://api.github.com/users/kobemtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobemtl/subscriptions","organizations_url":"https://api.github.com/users/kobemtl/orgs","repos_url":"https://api.github.com/users/kobemtl/repos","events_url":"https://api.github.com/users/kobemtl/events{/privacy}","received_events_url":"https://api.github.com/users/kobemtl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-05-26T16:19:48Z","updated_at":"2016-05-31T23:46:16Z","closed_at":"2016-05-31T22:30:20Z","body":"Got the error message below if china.proxy.http set. Please help.謝謝了.\r\n\r\n**SYSTEM INFO**\r\n> ~$ zx -v\r\nzhuaxia (抓虾) 3.1.0\r\n~$ python -V\r\nPython 2.7.6\r\n~$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 14.04.4 LTS\r\nRelease:\t14.04\r\nCodename:\ttrusty\r\n~$ uname -a\r\nLinux homeserver 4.2.5-040205-generic #201510270124 SMP Tue Oct 27 01:25:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n\r\n\r\n**ERROR MESSAGE**\r\n\r\n> ~$ zx \"http://music.163.com/#/song?id=410846246\"\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/zx\", line 5, in <module>\r\n    pkg_resources.run_script('zhuaxia==3.1.0', 'zx')\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 528, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1394, in run_script\r\n    execfile(script_filename, namespace, namespace)\r\n  File \"/usr/local/lib/python2.7/dist-packages/zhuaxia-3.1.0-py2.7.egg/EGG-INFO/scripts/zx\", line 122, in <module>\r\n    commander.shall_I_begin(option)\r\n  File \"/usr/local/lib/python2.7/dist-packages/zhuaxia-3.1.0-py2.7.egg/zhuaxia/commander.py\", line 70, in shall_I_begin\r\n    from_url_163(m163, option.inUrl)\r\n  File \"/usr/local/lib/python2.7/dist-packages/zhuaxia-3.1.0-py2.7.egg/zhuaxia/commander.py\", line 106, in from_url_163\r\n    song =netease.NeteaseSong(m163,url=url)\r\n  File \"/usr/local/lib/python2.7/dist-packages/zhuaxia-3.1.0-py2.7.egg/zhuaxia/netease.py\", line 60, in __init__\r\n    j = self.handler.read_link(url_song % (self.song_id,self.song_id)).json()['songs'][0]\r\n  File \"/usr/local/lib/python2.7/dist-packages/zhuaxia-3.1.0-py2.7.egg/zhuaxia/netease.py\", line 243, in read_link\r\n    retVal =  requests.get(link, headers=self.HEADERS, proxies=requests_proxy)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 55, in get\r\n    return request('get', url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 44, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 455, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 558, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/adapters.py\", line 305, in send\r\n    conn = self.get_connection(request.url, proxies)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/adapters.py\", line 206, in get_connection\r\n    except_on_missing_scheme(proxy)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/utils.py\", line 636, in except_on_missing_scheme\r\n    raise MissingSchema('Proxy URLs must have explicit schemes.')\r\nrequests.exceptions.MissingSchema: Proxy URLs must have explicit schemes."},"comment":{"url":"https://api.github.com/repos/sk1418/zhuaxia/issues/comments/222854207","html_url":"https://github.com/sk1418/zhuaxia/issues/38#issuecomment-222854207","issue_url":"https://api.github.com/repos/sk1418/zhuaxia/issues/38","id":222854207,"user":{"login":"kobemtl","id":6043647,"avatar_url":"https://avatars.githubusercontent.com/u/6043647?v=3","gravatar_id":"","url":"https://api.github.com/users/kobemtl","html_url":"https://github.com/kobemtl","followers_url":"https://api.github.com/users/kobemtl/followers","following_url":"https://api.github.com/users/kobemtl/following{/other_user}","gists_url":"https://api.github.com/users/kobemtl/gists{/gist_id}","starred_url":"https://api.github.com/users/kobemtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobemtl/subscriptions","organizations_url":"https://api.github.com/users/kobemtl/orgs","repos_url":"https://api.github.com/users/kobemtl/repos","events_url":"https://api.github.com/users/kobemtl/events{/privacy}","received_events_url":"https://api.github.com/users/kobemtl/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T23:46:16Z","updated_at":"2016-05-31T23:46:16Z","body":"And you are definitely right. The other php script hardcoded the host and not working on most of the songs.   "}}
{"actor":{"display_login":"kobemtl"}}