Recent Changes - Search:

LiveStreamsPro

PmWiki

pmwiki.org

edit SideBar

Captcha

LSPRO support for Google uncaptcha-recaptcha

Google captcha version 2 (the one which says "i am not a bot" and sometime works with a click of button and sometime you have to choose multiple pictures from selection - for further info also see https://www.google.com/recaptcha/api2/demo.) cannot be completely bypassed but LSPRO is providing an elegant i am using fallback method where you can answer the question (there are two questions) inside Kodi.

The py function performCaptcha has 5 parameters, First one the url for which we are doing the captcha, second cookie_jar and the third one is returnpage which would be True if you want the page data back, or False, if you want to get captcha challenge (useful if you want the challenge like in post fields etc).
Two params are optional lang which is language by default it would use english you can pass for example da for danish and captcharegex which is the regex to find the key in the html the default is 'data-sitekey="(.*?)"'

Here is an example, it doesn't play anything but you can see the fiddler log or kodi that it gets success message.
Code:

<item>
    <title>google demo v2 test</title>
    <link>$doregex[select_Url]</link>
    <regex>
        <name>select_Url</name>
        <expres>(.*)</expres>
        <page>$pyFunction: unCaptcha.performCaptcha('https://www.google.com/recaptcha/api2/demo',Cookie_Jar,returnpage=True)</page>
        <NOTPlayable>True</NOTPlayable>
    </regex>
</item>


Another example of google uncaptcha recaptcha. Please check if you are able to access the website as they have blocked few ip range, including uk ones.
Code:
<item>
    <title>uncaptcha v2 test</title>
    <link>$doregex[select_Url] swfUrl=http://www.livetv.tn/flowplayer-3.2.7.swf pageUrl=http://www.livetv.tn/animetv.php flashVer=WIN\2020,0,0,267 timeout=15</link>
    <regex>
        <name>select_Url</name>
        <expres>url: "(.*?)"</expres>
        <page>$pyFunction: unCaptcha.performCaptcha('http://www.livetv.tn/animetv.php',Cookie_Jar,returnpage=True,lang="en")</page>
    </regex>
</item>


Example code for tutvgratis with py code section and uncaptcha:
<item>
    <title>http://tutvgratis.tv/entretenimiento/ae</title>
    <link>$doregex[max-cookie-referer]</link>
    <regex>
        <name>max-cookie-referer</name>
        <expres>
            <![CDATA[#$pyFunction
           def GetLSProData(page_data,Cookie_Jar,m,url='$doregex[select_Url]'):
            import re
            import requests
            headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0'}
            source = requests.get(url, headers=headers)
            maxi = re.findall('(http.*)', source.text)[0]
            clean=maxi.replace('|','%7C')
            cookie2 = source.cookies['_g']
            return clean + '|Referer=http://tutvgratis.tv/&Cookie=_g=' + cookie2

           ]]>
        </expres>
        <page></page>
    </regex>
    <regex>
        <name>select_Url</name>
        <expres>file: "(.*?)"</expres>
        <page>$pyFunction: unCaptcha.performCaptcha('http://tutvgratis.tv/embed/tutv?chid=194',Cookie_Jar,returnpage=True)</page>
        <agent>Mozilla/5.0 (X11; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0</agent>
    </regex>
</item>

Edit - History - Print - Recent Changes - Search
Page last modified on February 26, 2016, at 08:18 AM
Free Web Hosting