MCPcopy
hub / github.com/constverum/ProxyBroker / _find_on_pages

Method _find_on_pages

proxybroker/providers.py:91–102  ·  view source on GitHub ↗
(self, urls)

Source from the content-addressed store, hash-verified

89 await self._find_on_page(self.url)
90
91 async def _find_on_pages(self, urls):
92 if not urls:
93 return
94 tasks = []
95 if not isinstance(urls[0], dict):
96 urls = set(urls)
97 for url in urls:
98 if isinstance(url, dict):
99 tasks.append(self._find_on_page(**url))
100 else:
101 tasks.append(self._find_on_page(url))
102 await asyncio.gather(*tasks)
103
104 async def _find_on_page(self, url, data=None, headers=None, method='GET'):
105 page = await self.get(url, data=data, headers=headers, method=method)

Callers 15

_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80
_pipeMethod · 0.80

Calls 1

_find_on_pageMethod · 0.95

Tested by

no test coverage detected