Update main.py
This commit is contained in:
parent
c47dae13a9
commit
3e63985e53
@ -35,7 +35,6 @@ async def root(body: UrlModel):
|
|||||||
wait_until="load",
|
wait_until="load",
|
||||||
timeout=body.wait if body.wait else 15,
|
timeout=body.wait if body.wait else 15,
|
||||||
)
|
)
|
||||||
await page.wait_for_selector("body", state="attached")
|
|
||||||
page_content = await page.content()
|
page_content = await page.content()
|
||||||
await context.close()
|
await context.close()
|
||||||
json_compatible_item_data = {"content": page_content}
|
json_compatible_item_data = {"content": page_content}
|
||||||
|
Loading…
Reference in New Issue
Block a user