home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netrunner 2004 October
/
NETRUNNER0410.ISO
/
regular
/
iria107a.lzh
/
script
/
theglobe.ipy
< prev
next >
Wrap
Text File
|
2000-11-23
|
973b
|
41 lines
#name=theglobe(RANGE)
#version=0.1
#author=Wolfy
#date=2000/11/22
#comment=theglobeé╓é╠âwâbâ_é╠Rangeé≡RANGEé╔ò╧éªéΘ
#func=OnRequest
#category=download
#param_comment=
import sys,httplib,re,string,os.path
from gaogaolib import *
#theglobe
hosts = r'^http://members[0-9]*\.theglobe\.com'
def OnRequest(url,headers,proxy,redirect,item,param):
r'''HTTPâèâNâGâXâgé╠æOé╔î─é╬éΩé▄é╖üBò╘Ælé═ âtâëâOé╞ÉVé╡éóURLé╠â^âvâï'''
#Redirecté╚éτé╬ÅIéΦ
if redirect:
return (IGNORE,url)
#É│ïKò\î╗âRâôâpâCâï
re_hosts = re.compile(hosts,re.IGNORECASE)
if not re_hosts.search(url):
#î⌐é┬é⌐éτé╚é⌐é┴é╜éτÅIéΦ
return (IGNORE,url)
else: #î⌐é┬é⌐é┴é╜éτrangeé≡RANGEé╔ò╧éªéΘ
keys = headers.keys()
for field in keys:
if string.lower(field) == 'range':
data = headers[field]
del headers[field]
headers['RANGE'] = data
return (SUCCESS,url)
#end OnRequest