예제 #1
0
def upload(localfile):
  strtoparse=base.upload('http://www.imageshack.us/',localfile,'fileupload',fields={'uploadtype':'on','url':'','email':'','MAX_FILE_SIZE':'13145728','refer':'','brand':'','optiimage':'resample','optisize':'resample','rembar':'1'})
  p1=strtoparse.find('<input onClick="pageTracker._trackEvent(\'new-done-click\',\'direct-click\');" readonly="readonly" class="readonly" value="')
  if p1>=0:
    p1+=119
    p2=strtoparse.find('"',p1)
    return strtoparse[p1:p2]
예제 #2
0
def upload(localfile):
  strtoparse=base.upload('http://www.xs.to/upload.php',localfile,'f_single',fields={'typ':'s'})
  p1=strtoparse.find('URL=')
  if p1>0:
    p1+=4
    p2=strtoparse.find('">',p1)
    strtoparse=base.fetchDoc(strtoparse[p1:p2])
    #Ye, theyve no clue of html, single ' is correct in here
    p1=strtoparse.find("'http://xs.to/image")
    if p1>0:
      p1+=1
      p2=strtoparse.find("'",p1)
      return strtoparse[p1:p2]
예제 #3
0
def upload(localfile):
  strtoparse=base.upload('http://www.hellameke.com/basic.php',localfile,'userfile')
  p1=strtoparse.find('hellameke.com/images/')
  if p1>=0:
    p2=strtoparse.find('"',p1)
    return 'http://www.'+strtoparse[p1:p2]
예제 #4
0
def upload(localfile):
  strtoparse=base.upload('http://www.imagecabin.com/index.php',localfile,'file[]', fields={'MAX_FILE_SIZE':'3000000','filetype':'images','numupl':'1','action':'now','typesel':'images','privacy1':'1','filetitle1':'','cat1':'1'})
  p1=strtoparse.find('index.php?view=')
  if p1>=0:
    p2=strtoparse.find('"',p1)
    return 'http://imagecabin.com/'+strtoparse[p1:p2]