Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Return Dict Str Str Str Str Str Str NameLoad NameLoad Str NameLoad NameLoad NameLoad decorator_list decorator_list
N/A __future__ unicode_literals N/A json N/A re common InfoExtractor utils js_to_json PatreonIE N/A InfoExtractor N/A N/A _VALID_URL https?://(?:www\.)?patreon\.com/creation\?hid=(.+) N/A _TESTS N/A N/A url md5 info_dict http://www.patreon.com/creation?hid=743933 e25505eec1053a6e6813b8ed369875cc N/A id ext title uploader thumbnail 743933 mp3 Episode 166: David Smalley of Dogma Debate Cognitive Dissonance Podcast re:^https?://.*$ N/A url md5 info_dict http://www.patreon.com/creation?hid=754133 3eb09345bf44bf60451b8b0b81759d0a N/A id ext title uploader thumbnail 754133 mp3 CD 167 Extra Cognitive Dissonance Podcast re:^https?://.*$ N/A 
    def _login(self):
        (username, password) = self._get_login_info()
        if username is None:
            return

        login_form = {
            'redirectUrl': 'http://www.patreon.com/',
            'email': username,
            'password': password,
        }

        request = compat_urllib_request.Request(
            'https://www.patreon.com/processLogin',
            compat_urllib_parse.urlencode(login_form).encode('utf-8')
        )
        login_page = self._download_webpage(request, None, note='Logging in as %s' % username)

        if re.search(r'onLoginFailed', login_page):
            raise ExtractorError('Unable to login, incorrect username and/or password', expected=True)

    def _real_initialize(self):
        self._login()
     _real_extract N/A N/A self url N/A N/A N/A mobj N/A N/A re match N/A self _VALID_URL url N/A video_id N/A N/A mobj group 1 N/A webpage N/A N/A self _download_webpage url video_id N/A title N/A N/A N/A N/A self _og_search_title webpage strip N/A attach_fn N/A N/A self _html_search_regex <div class="attach"><a target="_blank" href="([^"]+)"> webpage attachment URL default None N/A N/A attach_fn None N/A N/A video_url N/A http://www.patreon.com attach_fn N/A thumbnail N/A N/A self _og_search_thumbnail webpage N/A uploader N/A N/A self _html_search_regex <strong>(.*?)</strong> is creating webpage uploader N/A N/A playlist_js N/A N/A self _search_regex (?s)new\s+jPlayerPlaylist\(\s*\{\s*[^}]*},\s*(\[.*?,?\s*\]) webpage playlist JSON N/A playlist_json N/A js_to_json playlist_js N/A playlist N/A N/A json loads playlist_json N/A data N/A playlist N/A 0 N/A video_url N/A N/A self _proto_relative_url N/A data N/A mp3 N/A thumbnail N/A N/A self _proto_relative_url N/A N/A data get cover N/A uploader N/A N/A data get artist N/A N/A id url ext title uploader thumbnail video_id video_url mp3 title uploader thumbnail N/A N/A