This script attempts to avoid IP bans by creating the magnet links slowly, so you will see the links be created over a period of about 30 seconds. Unfortunately, any faster leads to a ban after a few page loads.
The current query delay is 1 second; every half a second was to fast and resulted in a ban. Hopefully the delay is high enough to avoid the IP ban. The API documentation said that there was a 1 request every 2 seconds limit, but we are going to try 1 request a second.