Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Google+] Cannot handle URLs containing Unicode characters #17

Closed
soimort opened this Issue · 0 comments

1 participant

@soimort
Owner
➜  Downloads  you-get -i https://plus.google.com/+平田梨奈/posts/M8r9dbkZdet
Traceback (most recent call last):
  File "/usr/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.2.10', 'console_scripts', 'you-get')()
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/main.py", line 56, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/common.py", line 647, in script_main
    download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/common.py", line 567, in download_main
    download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/main.py", line 49, in any_download
    m.download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/downloader/googleplus.py", line 8, in googleplus_download
    html = get_html(url)
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/common.py", line 89, in get_html
    content = get_response(url, faker).data
  File "/usr/lib/python3.2/site-packages/you_get-0.2.10-py3.2.egg/you_get/common.py", line 78, in get_response
    response = request.urlopen(url)
  File "/usr/lib/python3.2/urllib/request.py", line 138, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.2/urllib/request.py", line 369, in open
    response = self._open(req, data)
  File "/usr/lib/python3.2/urllib/request.py", line 387, in _open
    '_open', req)
  File "/usr/lib/python3.2/urllib/request.py", line 347, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.2/urllib/request.py", line 1155, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.2/urllib/request.py", line 1135, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 859, in putrequest
    self._output(request.encode('ascii'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-9: ordinal not in range(128)
@soimort soimort was assigned
@soimort soimort closed this in 3341bdd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.