admin 管理员组

文章数量: 1184232

# -*- 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=src_url[10:len(src_url)]
  tmp_url=base64.decodestring(url);
  real_url=tmp_url[2:len(tmp_url)-2];
  print real_url;
  
def get_flash_get(src_url):
  print 'flashget转真实链接:';
  u

本文标签: 系统 轻松玩转 互联网资