Skip to content

Instantly share code, notes, and snippets.

# IMPORTS
import requests
import re
import os
import sys
# CREDENTIALS
login = "[email protected]"
password = "xxx"
@dmitriiivashko
dmitriiivashko / rss.py
Last active December 17, 2015 07:49
TranceTraffic Seedbox
rss_path = "http://www.trancetraffic.com/tt_rss_dl.php?w_cats=1&passkey=XXXXXXXXXXXXXXXXXXXXX"
filter_categories=[
"Albums - Trance",
"Singles - Trance",
"Albums - Techno",
"Singles - Techno",
"Albums - House",
"Singles - House",
"Livesets - Trance"
@dmitriiivashko
dmitriiivashko / cleanup.rb
Last active December 13, 2015 21:38
Tranceroute seedbox
require 'fileutils'
require 'yaml'
daysToExpire = 3
expiredTorrents = []
Dir.glob(File.join(File.dirname(__FILE__),'watch','*.torrent')) do |torrent|
expiredTorrents << torrent.gsub(/^.+\//,'') if ((Time.now - File.ctime(torrent))/(24*3600)>daysToExpire)
end