Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't support sock5 #1

Open
xueqingsun opened this issue Jan 10, 2017 · 2 comments
Open

Can't support sock5 #1

xueqingsun opened this issue Jan 10, 2017 · 2 comments

Comments

@xueqingsun
Copy link

My sock5 is local shadowsocks, and the SS is used by me in daily work.
the tumblr_download can't support sock5 hosted by SS.
Would you have a look at the issue?

D:\GreenApplications\tumblr_download-master>python tumblr.py -s bjsxey --type=both --thread=10 --proxy=sock5://127.0.0.1:1199
[2017-01-10 20:13:40.749410] [WinError 183] Cannot create a file when that file already exists: 'bjsxey'
Traceback (most recent call last):
File "tumblr.py", line 177, in
tasks(site, options.type, int(options.thread))
File "tumblr.py", line 148, in tasks
total = crawler(site, types)
File "tumblr.py", line 128, in crawler
if requests.get('http://%s.tumblr.com/' % (site), proxies=PROXY).status_code != 200:
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\adapters.py", line 390, in send
conn = self.get_connection(request.url, proxies)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\adapters.py", line 290, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\adapters.py", line 194, in proxy_manager_for
**proxy_kwargs)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\packages\urllib3\poolmanager.py", line 363, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "D:\Users\ag\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\packages\urllib3\poolmanager.py", line 314, in init
raise ProxySchemeUnknown(proxy.scheme)
requests.packages.urllib3.exceptions.ProxySchemeUnknown: Not supported proxy scheme sock5

@lc4t
Copy link
Owner

lc4t commented Jan 10, 2017

Sorry for that.
Maybe you have a typo, sock5->socks5
see the help message:
--proxy=PROXY socks5://127.0.0.1:1080

Others, I forgot to write requirements.txt

Test in MacOS, Python3.6

@xueqingsun
Copy link
Author

xueqingsun commented Jan 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants