def __init__(self, q, language="en", light=False, wait=10, asynchronous=False, cached=True,
                 case_sensitive=False, full_strip=True):
        
        """ A download manager for Wikipedia pages.
        
        WikipediaSearch is a combination of
        URLAccumulator that handles asynchronous and cached web downloads and
        WikipediaPage that parses XML retrieved from the Wikipedia API.
        
        Retrieves the latest revision.
        Redirects are handled by the Wikipedia server.
        
        """
        
        self._light = light
        self._full_strip = full_strip
        
        if cached: 
            cache = "wikipedia"
        else:
            cache = None
        
        if not case_sensitive:
            q = str(q.lower())
        q = q.replace(" ", "_")
        url = self._api_request(q, language)
        URLAccumulator.__init__(self, url, wait, asynchronous, cache, type=".xml", throttle=2)
def __init__ ( self , q , language = "en" , light = False , wait = 10 , asynchronous = False , cached = True , case_sensitive = False , full_strip = True ) : self . _light = light self . _full_strip = full_strip if cached : cache = "wikipedia" else : cache = None if not case_sensitive : q = str ( q . lower ( ) ) q = q . replace ( " " , "_" ) url = self . _api_request ( q , language ) URLAccumulator . __init__ ( self , url , wait , asynchronous , cache , type = ".xml" , throttle = 2 )
A download manager for Wikipedia pages.
        
        WikipediaSearch is a combination of
        URLAccumulator that handles asynchronous and cached web downloads and
        WikipediaPage that parses XML retrieved from the Wikipedia API.
        
        Retrieves the latest revision.
        Redirects are handled by the Wikipedia server.