I made this little script a while back, kinda handy if this is true, I run on 15 min intervals which seems ok. Sorry, not archiving porn other it'd be realllly handy.
Handy.
#!/usr/bin/python2
import re
import time
import MySQLdb as mysql
import feedparser
###
# FEED IS IN GMT
RSS_FEED='https://pre.corrupt-net.org/rss.php?k=XXXXXXXXXXXXXXXXXXXXXX'
STRIP_TITLE='^\[MP3\] '
MYSQL_USER='user'
MYSQL_PASS='pass'
MYSQL_HOST='localhost'
MYSQL_NAME='pre'
###
feed = feedparser.parse(RSS_FEED)
cnx = mysql.connect(user=MYSQL_USER, passwd=MYSQL_PASS, host=MYSQL_HOST, db=MYSQL_NAME)
for r in reversed(feed['items']):
title = re.sub(STRIP_TITLE, '', r.title)
short = re.sub('[^a-zA-Z]','', title)
cat = r.category
raw_time = r.published
time_parse = time.strptime(raw_time, "%a, %d %b %Y %H:%M:%S +0000")
time_unix = time.mktime(time_parse)
time_now = time.mktime(time.gmtime())
time_now_f = time.strftime("%Y-%m-%d %H:%M:%S")
if (time_unix > time_now + 3600): continue
time_unix = int(time_unix)
print("[%s] checking %s" % (time_now_f, title))
c = cnx.cursor()
query = "select count(1) from releases where name = '%s'" % title
c.execute(query)
exist_check = c.fetchone()
pre_exists = False
c.close()
if (exist_check[0] > 0): continue
print("[%s] new release! %s" % (time_now_f, title))
c = cnx.cursor()
query = "insert into releases (name, category, time_string, time) values ('%s', '%s', '%s', from_unixtime(%s))" % (title, cat, raw_time, time_unix)
c.execute(query)
c.close()