refactor(noguchi): make for loop on reapeting element

Signed-off-by: paprykdev <58005447+paprykdev@users.noreply.github.com>
This commit is contained in:
patilk 2025-01-14 14:12:20 +01:00
parent e58f5e0cad
commit 1587f60c2b
Signed by: s500042
GPG Key ID: 1921AD722E7392EE

View File

@ -61,8 +61,7 @@ class NoguchiScraper:
time.sleep(5) time.sleep(5)
async def get_hrefs(self): async def get_hrefs(self):
await self.load_more() [await self.load_more() for _ in range(2)]
await self.load_more()
links = await self.find_els('div.grid-flex.grid-cr-browse div.item-grid a') links = await self.find_els('div.grid-flex.grid-cr-browse div.item-grid a')
arr = [] arr = []
for link in links: for link in links: