A simple and useful snippet

Recently i’ve developed a simple webscraper that extract magnet links from a specific page and starts the download with bittorrent.

The core of the script is the code snippet below, that uses pyquery in order to loop into a tags searching for a magnet link:

[embed]

I hope that can be useful.

Enjoy!