Skip to content

Commit

Permalink
Fix frames duplication to reduce context.
Browse files Browse the repository at this point in the history
Remove the first frame from the rendering list to avoid duplication
  • Loading branch information
danyathecoder committed Dec 3, 2024
1 parent c12889a commit 060436b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsera/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def get_full_html(self):
main_html = await self.page.evaluate("document.documentElement.outerHTML")

# Fetch all iframe HTMLs in parallel
iframe_html_tasks = [self.get_iframe_html(frame) for frame in self.page.frames]
iframe_html_tasks = [self.get_iframe_html(frame) for frame in self.page.frames[1:]]
iframes_html = await asyncio.gather(*iframe_html_tasks)

# Filter out None values (failed iframe retrievals)
Expand Down

0 comments on commit 060436b

Please sign in to comment.