Recent Changes - Search:

LiveStreamsPro

PmWiki

pmwiki.org

edit SideBar

Unpacker

epochtime, guid and unpack available as function in regex which you can use to create requests.

Just wanted to post this example as many sites are going towards p.a.c.k.e.d encryption. Even though LSPro supports Unpacked function, we should use it little different due to ' (appostrophe) being part of the string that we are parsing.

Here in the example, two things should stand out:

  1. How to do the html unescape, see the use of unquote.
  2. u.n.p.a.c.k.e.d where the page gets the data and then pass it to get_unpacked function via page_data. infact page_data will be available to any function that you write yourself.


Example:

<item>
    <title>Stream fr</title>
    <link>$doregex[geturl]</link>
    <regex>
        <name>geturl</name>
        <expres>(http.*?)"</expres>
        <page>$doregex[getunpacked]</page>
    </regex>
    <regex>
        <name>getunpacked</name>
        <expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)' )</expres>
        <page>$doregex[getunescaped]</page>
    </regex>
    <regex>
        <name>getunescaped</name>
        <expres>$pyFunction:urllib.unquote('$doregex[getdecoded]')</expres>
        <page></page>
    </regex>
    <regex>
        <name>getdecoded</name>
        <expres>$pyFunction:base64.b64decode('$doregex[getEnc]')</expres>
        <page></page>
    </regex>
    <regex>
        <name>getEnc</name>
        <expres>atob\(\"(.*?)\"</expres>
        <page>http://en.iphone-tv.eu/stream/fr/8</page>
    </regex>
</item>

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