tools/site_compare/scrapers/chrome/__init__.py
def GetScraper(version):
  """Returns the scraper module for the given version.

  Args:
    version: version string of Chrome, or None for most recent

  Returns:
    scrape module for given version
  """
  if version is None:
    version = "0.1.101.0"

  parsed_version = [int(x) for x in version.split(".")]

  if (parsed_version[0] > 0 or
      parsed_version[1] > 1 or
      parsed_version[2] > 97 or
      parsed_version[3] > 0):
    scraper_version = "chrome011010"
  else:
    scraper_version = "chrome01970"

  return __import__(scraper_version, globals(), locals(), [''])
Returns the scraper module for the given version.

  Args:
    version: version string of Chrome, or None for most recent

  Returns:
    scrape module for given version
  
Returns the scraper module for the given version.
Returns the scraper module for the given version .
def GetScraper(version):
  if version is None:
    version = "0.1.101.0"
  parsed_version = [int(x) for x in version.split(".")]
  if (parsed_version[0] > 0 or
      parsed_version[1] > 1 or
      parsed_version[2] > 97 or
      parsed_version[3] > 0):
    scraper_version = "chrome011010"
  else:
    scraper_version = "chrome01970"
  return __import__(scraper_version, globals(), locals(), [''])
def GetScraper ( version ) : if version is None : version = "0.1.101.0" parsed_version = [ int ( x ) for x in version . split ( "." ) ] if ( parsed_version [ 0 ] > 0 or parsed_version [ 1 ] > 1 or parsed_version [ 2 ] > 97 or parsed_version [ 3 ] > 0 ) : scraper_version = "chrome011010" else : scraper_version = "chrome01970" return __import__ ( scraper_version , globals ( ) , locals ( ) , [ '' ] )
Returns the scraper module for the given version.
Returns the scraper module for the given version .
"""Returns the scraper module for the given version.

  Args:
    version: version string of Chrome, or None for most recent

  Returns:
    scrape module for given version
  """
scrape module for given version
scrape module for given version
version
version string of Chrome, or None for most recent
version string of Chrome or None for most recent