There are 2 repositories under torrent-scraping topic.
Simple torrentz2.eu scraper
A Python Program Based On BeautifulSoup To Search The User's Desired Movies On https://yts.mx And Return Movies And Torrent Info
This a init script for Opentracker (a bittorrent tracker)