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

manage proxies better #59

Open
2 of 6 tasks
vikstrous opened this issue Sep 3, 2015 · 3 comments
Open
2 of 6 tasks

manage proxies better #59

vikstrous opened this issue Sep 3, 2015 · 3 comments

Comments

@vikstrous
Copy link
Owner

vikstrous commented Sep 3, 2015

We have to address a few issues:

  • For users who can access the pirate bay directly we need to prioritize the real pirate bay
  • For users who can't we need to make sure they can configure their preferred proxy or proxy list to be first
  • We need an extensible way of parsing proxy lists
  • We should consider adding actual http proxies as an option in addition to reverse proxies
  • We already have a way to blacklist proxies, but this is something that we might want to have more control over. I propose that we run a github hosted website with json lists that the client can periodically sync with. I imagine the client caching the data for about a day.
  • We should prefer https over http whenever possible

We'll need some refactoring to make this happen and we really need proper testing once the codebase is testable.

I'd say this is blocked on #44 to avoid breaking anything in the process of adding these features.

@vindarel
Copy link

vindarel commented Jan 6, 2016

That's a good todo list :) I can't use pirate-get ATM because I can't reach proxybay.co/list.txt. I imagine doable to have a [Mirrors] section where one can add the mirror(s) that is working for him. (I tried, just have to sharpen my python3 tooling…).

@allgreed
Copy link

allgreed commented Dec 7, 2017

@vikstrous I'd also add to the list caching the last working proxy and trying that one first -> once I did a search and 10th proxy worked. I did another search seconds later and had to wait-out 9 requests fails -> maybe something like:

if original pirate bay fails and has cached working proxy:
    try that proxy
    if that proxy fails:
        go through the list (without the tried proxy)

That would reduce tries on subsequest request to maximum 2
Would you think of this as desired behavior?

@vikstrous
Copy link
Owner Author

vikstrous commented Dec 7, 2017 via email

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

No branches or pull requests

3 participants