code: def fetchUrls(cls, url, data, urlSearch):
          
          searchUrls = []
          if cls.css:
              searchFun = data.cssselect
          else:
              searchFun = data.xpath
          searches = makeSequence(urlSearch)
          for search in searches:
              for match in searchFun(search):
                  try:
                      for attrib in html_link_attrs:
                          if attrib in match.attrib:
                              searchUrls.append(match.get(attrib))
                  except AttributeError:
                      searchUrls.append(str(match))
              if not cls.multipleImagesPerStrip and searchUrls:
                  # do not search other links if one pattern matched
                  break
          if not searchUrls:
              raise ValueError("XPath %s not found at URL %s." % (searches, url))
          return searchUrls
docs: Search all entries for given XPath in a HTML page.