How to add multiple blocklists?

Discussion of Transmission that doesn't fit in the other categories
raysos
Posts: 4
Joined: Fri Nov 13, 2009 2:04 pm

Re: How to add multiple blocklists?

Post by raysos »

Update.

I've discovered that by default the user library is hidden in mountain lion

to unhide it you can enter this command in a terminal window

chflags nohidden ~/Library


here's the page where i found that info

https://discussions.apple.com/thread/42 ... 0&tstart=0
adam.david.cox
Posts: 2
Joined: Tue Mar 26, 2013 11:55 pm

Re: How to add multiple blocklists?

Post by adam.david.cox »

concatblocklist.py
I've written a small python script to automatically download and merge all your p2p format block-lists.
Currently it's for OSX only, but if anyone wants to modify it for the win/*nix crowd, they're more than welcome.
It works by pulling URLs from a user-defined list, unpacking any gzip files (only gzip is supported), and concatenating them into one mega file within the /blocklists/ folder. Because I wrote this with iblocklist.com in mind, concatblocklist.py treats every downloaded file as a gzip by default, but skips unzipping for each file with the ".txt" suffix.

Here's how to use it:
1) Make a list of every file URL (eg http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz)
2) Save said list as a plaintext file, following every URL with a newline. Save this file somewhere safe (eg /Application Support/Transmission/)
3) Run concatblocklist.py, supplying the path to the list file as an argument. (eg '$ python concatblocklist.py ~/Librar*/Appli*/Trans*/blocklist')
4) When concatblocklist.py is finished, open Transmission to create a new binary file.
5) I recommend adding concatblocklist.py to your login procedures so that your blocklist stays up-to-date.

I'm pretty new to python, so if anyone wants to clean up the script, here's the github link:
https://github.com/adamdavidcox/Concatenate-Blocklist
war_lord12345
Posts: 2
Joined: Thu Sep 26, 2013 5:35 am

Re: How to add multiple blocklists?

Post by war_lord12345 »

LOL after doing these steps (works great btw) the url that i have chosen to update has 1,308,176 rules in the list but before i did it was only at 600,000? was looking for an explanation if possible thanks :D
Post Reply