Example #1
0
    def __init__(self, loc):
        super().__init__(loc)

        main_search = request_provider.UrlInterpolationProvider(
            self.getBaseUrl() + "/Search?st=%s")
        comp = _FarnellComp(self.getBaseUrl())

        manf_cat_search = request_provider.UrlInterpolationProvider(
            self.getBaseUrl() + "/%s")

        self.providers = {
            self.R_DEF_COMPLETE: comp,
            self.R_PRODUCT: main_search,
            self.R_MANUFACTURER: manf_cat_search,
            self.R_CATEGORY: manf_cat_search
        }
Example #2
0
    def __init__(self, locale):
        super(YahooWebSearch, self).__init__(locale)

        s_url = self.get_subdomain('search') + "/search?p=%s"
        search = request_provider.UrlInterpolationProvider(s_url)
        comp = _Completion()

        self._add_basic_search_complete(search, comp)
Example #3
0
    def __init__(self, loc):
        super().__init__(loc)

        search_url = self.getBaseUrl() + "/Search/Refine.aspx?Keyword=%s"

        search = request_provider.UrlInterpolationProvider(search_url)
        comp = _MouserComplete(self.getBaseUrl())

        self._add_basic_search_complete(search, comp)
Example #4
0
    def __init__(self, locale=None):
        mnemory.SearchMnemory.__init__(self, None)

        search_url = self.base + "/search?q=%s"

        search = request_provider.UrlInterpolationProvider(search_url)
        comp = _OctopartComp(self.base)

        self._add_basic_search_complete(search, comp)
Example #5
0
    def __init__(self, loc=None):
        self.base = "https://www.scholar.google." + locale.tldForLocale(loc)

        sch_pat = self.base + "/scholar?q=%s"
        search = request_provider.UrlInterpolationProvider(sch_pat)

        self._add_basic_search_complete(search, None)

        super().__init__(loc)
Example #6
0
    def __init__(self, loc=None):
        super().__init__(loc)

        search_url = self.base + "/input/?i=%s"

        search = request_provider.UrlInterpolationProvider(search_url)
        comp = _Completion()

        self._add_basic_search_complete(search, comp)
Example #7
0
    def __init__(self, locale=None):
        super().__init__(locale)

        s_url = 'http://www.mdbg.net/chindict/chindict.php?page=worddict&wdqb=%s'

        search = request_provider.UrlInterpolationProvider(s_url)
        comp = _MdbgCompl()

        self._add_basic_search_complete(search, comp)
Example #8
0
    def __init__(self, loc):
        mnemory.SearchMnemory.__init__(self, loc)

        self.base = "amazon." + locale.tldForLocale(self.locale)

        s_url = "http://" + self.base + "/s/?field-keywords=%s"

        search = request_provider.UrlInterpolationProvider(s_url)
        comp = _Completion(self.base, loc)

        self._add_basic_search_complete(search, comp)
Example #9
0
    def __init__(self, loc=None):
        self.base = "https://www.google." + locale.tldForLocale(loc)

        sch_pat = self.base + "/search?tbm=isch&q=%s"

        search = request_provider.UrlInterpolationProvider(sch_pat)
        comp = _GImgComp(self.base, loc)

        self._add_basic_search_complete(search, comp)

        super().__init__(loc)
Example #10
0
    def __init__(self, locale=None):
        mnemory.SearchMnemory.__init__(self, None)

        self.base = "https://dict.youdao.com"

        search_url = self.base + '/search?keyfrom=dict.index&q=%s'

        search = request_provider.UrlInterpolationProvider(search_url)
        comp = _Completion()

        self._add_basic_search_complete(search, comp)
Example #11
0
    def __init__(self, loc):
        mnemory.SearchMnemory.__init__(self, loc)

        self.base = "http://ebay." + locale.tldForLocale(loc)

        search_url = self.base + "/sch/i.html?_nkw=%s"

        search = request_provider.UrlInterpolationProvider(search_url)
        comp = _Complete(loc)

        self._add_basic_search_complete(search, comp)
Example #12
0
    def __init__(self, loc=None):
        self.base = "https://www.google." + locale.tldForLocale(
            loc) + "/trends"

        sch_pat = self.base + "/explore#q=%s"

        search = request_provider.UrlInterpolationProvider(sch_pat)
        comp = _GTrendComp(self.base)

        self._add_basic_search_complete(search, comp)

        super().__init__(loc)
Example #13
0
    def __init__(self, loc=None):
        mnemory.SearchMnemory.__init__(self, loc)

        self.base = "http://youtube.com"

        sch_pat = self.base + "/results?search_query=%s"

        search = request_provider.UrlInterpolationProvider(sch_pat)
        comp = _YoutubeComplete()

        self._add_basic_search_complete(search, comp)

        super().__init__(loc)