Extract all magnet links from an html page with Python

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:

https://gist.github.com/andreafortuna/a5efc60d2215eb3554779e4bd38d455a

I hope that can be useful.

Enjoy!

Related posts

  1. pySchö: algorithmic music composition
  2. Social Engineering in penetration tests: my point of view and my own custom tool
  3. SpiderFoot 3.0: OSINT reconnaissance tool
  4. Playing with the cat (in the command line)
  5. PEpper: a python script to perform malware static analysis on Portable Executable format