vikstrous / pirate-get

A command line interface for The Pirate Bay
GNU Affero General Public License v3.0
337 stars 53 forks source link

Finding an unblocked pirate bay? #5

Closed gausie closed 10 years ago

gausie commented 10 years ago

In the UK (and elsewhere) the Pirate Bay is blocked but there are loads of mirrors that let us in. It would be good if this ran through a list of mirrors located on the web until it found one that worked!

vikstrous commented 10 years ago

That's a good idea. Do you have same examples of mirrors?

On January 31, 2014 1:18:46 PM EST, Samuel Gaus notifications@github.com wrote:

In the UK (and elsewhere) the Pirate Bay is blocked but there are loads of mirrors that let us in. It would be good if this ran through a list of mirrors located on the web until it found one that worked!


Reply to this email directly or view it on GitHub: https://github.com/vikstrous/pirate-get/issues/5

Sent from my Android device with K-9 Mail. Please excuse my brevity.

gausie commented 10 years ago

bayproxy.me is one (http://www.piratebayproxylist.com/ for more!)

vikstrous commented 10 years ago

Wow... so many broken links, parked domains, ads, etc. I don't really want to deal with figuring out which ones work or not and trying to compile a list and keep it up to date. How about using a file you could optionally create in your home directory to set the "proxy" url? Something like ~/.piratebay?

gausie commented 10 years ago

That might work. It would be best to have it scrape a more frequently updated list perhaps.

I'll have a look around. On 1 Feb 2014 00:32, "Viktor Stanchev" notifications@github.com wrote:

Wow... so many broken links, parked domains, ads, etc. I don't really want to deal with figuring out which ones work or not and trying to compile a list and keep it up to date. How about using a file you could optionally create in your home directory to set the "proxy" url? Something like ~/.piratebay?

Reply to this email directly or view it on GitHubhttps://github.com/vikstrous/pirate-get/issues/5#issuecomment-33856677 .

gausie commented 10 years ago

Here we go, this looks perfect: http://proxybay.info/list.html

gausie commented 10 years ago

Thanks!

This doesn't seem to be correctly identifying that thepiratebay.se is blocked so it must move on to another mirror. I'm just getting "Trying thepiratebay.se" "no results".

gausie commented 10 years ago

The best way to tell if it is blocked is if there's a status code other than 200.

gausie commented 10 years ago

Seems to actually be quite hard to detect a 302 in urllib though.

vikstrous commented 10 years ago

Try now.

On February 1, 2014 1:27:01 PM EST, Samuel Gaus notifications@github.com wrote:

Seems to actually be quite hard to detect a 302 in python though.


Reply to this email directly or view it on GitHub: https://github.com/vikstrous/pirate-get/issues/5#issuecomment-33879385

Sent from my Android device with K-9 Mail. Please excuse my brevity.