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:
<a href="https://medium.com/media/913f01b6ae23561a434980a2ccda3c44/href">https://medium.com/media/913f01b6ae23561a434980a2ccda3c44/href</a>I hope that can be useful.
Enjoy!
Extract all magnet links from an html page with Python was originally published in So Long, and Thanks for All the Fish on Medium, where people are continuing the conversation by highlighting and responding to this story.
Article Link: https://andreafortuna.org/extract-all-magnet-links-from-an-html-page-with-python-d149fd08213c?source=rss----bf18ac17f001---4