Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

        def build_query(queries):
    return '&'.join([k+'='+urllib.quote(str(v)) for (k,v) in queries.items()])
        


src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.audio.subsonic/resources/lib/Subsonic/Subsonic.py   t0mm0-xbmc-plugins(Download)
                        'f': 'json'})
        Addon.log('queries: ' + str(queries))
        query = Addon.build_query(queries)
        return '%s/rest/%s?%s' % (self.server, method, query) 
 

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.video.crackle/resources/lib/crackle.py   t0mm0-xbmc-plugins(Download)
    def get_channels(self, cat, genre, vtype, page=0):
        cl = Addon.build_query({'o': 1, 'fa': cat, 'fs': '', 'fx': '', 'fab': '', 'fg': genre, 'fry': ''})[1:]
        html = self.__get_html('chromewebapp/ShowList.aspx', {'cl': cl, 'p': page, 'fb': vtype}, use_proxy=True)
        if html.find('>&gt;</a>') > -1:
            more = True
    def __build_url(self, path, queries={}):
        query = Addon.build_query(queries)
        return '%s/%s?%s' % (self.__BASE_URL, path, query) 
 
    def __get_html(self, path, queries={}, use_proxy=False):

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.audio.8tracks/resources/lib/eighttracks.py   t0mm0-xbmc-plugins(Download)
    def _build_url(self, path, queries={}):
        query = Addon.build_query(queries)
        return '%s/%s?%s' % (self._BASE_URL, path, query) 
 
    def _fetch(self, url, form_data=False):

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.video.roadrunnerrecords/resources/lib/roadrunner.py   t0mm0-xbmc-plugins(Download)
    def _build_url(self, path, queries={}):
        query = Addon.build_query(queries)
        return '%s/%s?%s' % (self.__BASE_URL, path, query) 
 
    def _fetch(self, url, form_data=False):

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.video.muzu.tv/resources/lib/muzutv.py   t0mm0-xbmc-plugins(Download)
    def __build_url(self, path, queries={}):
        query = Addon.build_query(queries)
        return '%s/%s?%s' % (self.__BASE_URL, path, query) 
 
    def __fetch(self, url, form_data=False):

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.video.freedocast/resources/lib/freedocast.py   t0mm0-xbmc-plugins(Download)
    def __build_url(self, url, queries={}):
        if not url.startswith('http://'):
            url = '%s/%s' % (self.__BASE_URL, url)
        if queries:
            query = Addon.build_query(queries)

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.video.ustvnow/resources/lib/ustvnow.py   t0mm0-xbmc-plugins(Download)
    def _build_url(self, path, queries={}):
        if queries:
            query = Addon.build_query(queries)
            return '%s/%s?%s' % (self.__BASE_URL, path, query) 
        else: