From 7c910a3e3aa14205d091b7d68d4aadb1cb57b324 Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Wed, 7 Oct 2015 20:18:40 +0200 Subject: [PATCH] Remove frostwire script The source is on GitHub. No need for the script any more. --- frostwire.py | 34 ---------------------------------- update.sh | 1 - 2 files changed, 35 deletions(-) delete mode 100644 frostwire.py diff --git a/frostwire.py b/frostwire.py deleted file mode 100644 index 18ecc62..0000000 --- a/frostwire.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python -import urllib2 -import re -import sys -DIR_URL = "http://main1.frostwire.com/frostwire/" - -def printlink(spiFile, spiDirectory): - print "%s"%(spiDirectory+spiFile,spiFile) - -def download(spiUrl): - request = urllib2.Request(url=spiUrl) - result = urllib2.urlopen(request, timeout=2) - return result.read() - -if __name__ == "__main__": - data = download(DIR_URL) - data = data.split("\n") - href_re = re.compile('') - dirs = [] - for line in data: - search_result = re.search(href_re, line) - if not search_result: continue - sub_dir = search_result.group("sub_dir") - dirs += [sub_dir] - dirs = dirs[::-1] - for dir in dirs: - download_dir = DIR_URL+dir - data = download(download_dir).split("\n") - tarball_re = re.compile('') - for line in data: - search_result = re.search(tarball_re, line) - if not search_result: continue - file = search_result.group("file") - printlink(file, download_dir) diff --git a/update.sh b/update.sh index 15e53c4..5dc0218 100644 --- a/update.sh +++ b/update.sh @@ -1,5 +1,4 @@ #!/bin/sh -python frostwire.py > frostwire.html 2> frostwire.log python warsow.py > warsow.html 2> warsow.log python snowstorm.py > snowstorm.html 2> snowstorm.log python wakeonplan.py > wakeonplan.html 2> wakeonplan.log