# -*- coding: utf-8 -*-
import re;
import urllib2;
import os;
import base64;
def get_kuaichuan_url(src_url):
kuaichuan_re='<a\sxsid=".*?"\sstyle=".*?"\sclass=".*?"\shref="(?P<url>.*?)"\stitle=".*?"\sfile_size=".*?"\starget=".*?">.*?</a>';
req=urllib2.Request(src_url);
req.add_header("User-Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4")
resp=urllib2.urlopen(req).read();
found=re.finditer(kuaichuan_re,resp,re.S);
for url in found:
print '快传链接';
print url.group('url');
print '\n';
def get_qq_url(src_url):
print 'qq转真实链接:'
url=src_url[7:len(src_url)];
real_url=base64.decodestring(url);
print real_url;
def get_thunder_url(src_url):
print 'thunder转真实链接:'
url=s
PYTHON实现迅雷、FLASHGET、QQ旋风转真实链接、磁链转种子文件、迅雷快传链接抓取
最新推荐文章于 2023-09-26 12:01:01 发布