GithubHelp home page GithubHelp logo

No support for SOCKS 5 proxies about pithos HOT 11 OPEN

pithos avatar pithos commented on June 15, 2024
No support for SOCKS 5 proxies

from pithos.

Comments (11)

TheKrafter avatar TheKrafter commented on June 15, 2024 2

I'd very much appreciate socks5 support, i host a socks5 proxy and would like to listen to pandora at work (where it's blocked)

from pithos.

Jesse-V avatar Jesse-V commented on June 15, 2024

The workaround is:

$ torify pithos

I think you need to have torsocks installed.

from pithos.

heniokalinowski avatar heniokalinowski commented on June 15, 2024

I am using right now browser with TOR to listen Pandora and it works.

I have tried
$ torify pithos
it does log me in, id does display songs, but hangs on buffering 0% as well as nothing can be clicked (same as when You do heavy computing in main thread).
I get in terminal spam of messages like:

[Jul 26 19:28:11] WARNING torsocks[24223]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
[Jul 26 19:28:11] WARNING torsocks[24223]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
[Jul 26 19:28:11] WARNING torsocks[24223]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)

Also, it causes memory leak for me.
Linux Mint 18 x64 Cinnamone, stable repository

Maybe it would be better, to build-in support for listening from outside of USA like in this project:
https://github.com/PromyLOPh/pianobar

from pithos.

TingPing avatar TingPing commented on June 15, 2024

Seems like it should be pretty easy to use PySocks.

https://github.com/Anorov/PySocks/blob/master/sockshandler.py

from pithos.

infirit avatar infirit commented on June 15, 2024

Recent requests module supports SOCKS through the additional PySocks dep. Perhaps worth the contemplating moving to it.

from pithos.

TingPing avatar TingPing commented on June 15, 2024

Well since requests literally just uses PySocks too, so its only more work than us using it directly.

from pithos.

TingPing avatar TingPing commented on June 15, 2024

I pushed a simple test for socks5 here: https://github.com/pithos/pithos/tree/wip/socks

I only implemented it for the control proxy atm but if somebody wants to test it I might finish it up.

from pithos.

sunng87 avatar sunng87 commented on June 15, 2024

@TingPing may I ask what's the status about socks branch?

from pithos.

TingPing avatar TingPing commented on June 15, 2024

It just needs to be tested.

from pithos.

vectro avatar vectro commented on June 15, 2024

I merged wlp/socks to master (in my local repository) but it didn't work.

  • The main problem is in Pandora.build_opener(), the last line of which should be like this:
    return urllib.request.build_opener(*(handlers + (https,)))
  • The ImportError catch is probably not sufficient, as we then pass None to build_opener(), which causes a TypeError inside urllib (and anyway the print goes to the console, which is usually invisible).

from pithos.

TingPing avatar TingPing commented on June 15, 2024

@vectro Please do open a PR with a working version.

from pithos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.