Putlocker Captcha

j0anita

Developer
Sep 1, 2012
169
0
0
Portugal
Hi.

Sometimes putlocker gives script error because captcha has enabled.

I use this on my wareztuga addon and works great.. maybe someone can do a patch for this on urlresolver?

Code:
      if re.search('captcha_code',link1):
            from t0mm0.common.net import Net
            from t0mm0.common.addon import Addon
            net = Net()
            puzzle_img = os.path.join(pastaperfil, "putcaptcha.png")
            imagemcaptcha=re.compile('<img src="/include/captcha.php.+?CAPTCHA(.+?)" /><br>').findall(link1)[0]
            print imagemcaptcha
            headers={'Accept':'image/webp,*/*;q=0.8','Host':'www.putlocker.com','Pragma':'no-cache','Referer':url,'User-Agent':user_agent}
            open(puzzle_img, 'wb').write(net.http_GET('http://www.' + url[11:20] + '.com/include/captcha.php?_CAPTCHA'+imagemcaptcha,headers=headers).content)
            img = xbmcgui.ControlImage(450,15,400,130,puzzle_img )
            wdlg = xbmcgui.WindowDialog()
            wdlg.addControl(img)
            wdlg.show()
            kb = xbmc.Keyboard('', 'Introduza as letras da imagem', False)
            kb.doModal()
            capcode = kb.getText()
            try:os.remove(puzzle_img)
            except: pass
            if (kb.isConfirmed()):
               userInput = kb.getText()
               if userInput != '':
                   solution = kb.getText()
               elif userInput == '':
                   mensagemok("wareztuga.tv","Nenhum texto inserido.")
                   return False
            else:
               return False  
            wdlg.close()
            
            values = {'captcha_code':capcode, 'hash': hash, 'confirm':'Continue as Free User'}
Run this script to get captcha on putlocker for debug.. https://dl.dropboxusercontent.com/u/25590678/putlockercaptcha.py
 

oso

New member
Sep 19, 2012
378
0
0
From what I remember the captcha only kicks in after x amount of bandwidth per day/week/month