Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async def fetch_page(session, URL):
- # Make GET request using session
- async with session.get(url) as response:
- # Retrieve HTML content
- html_content = await response.text()
- # Parse HTML content using BeautifulSoup
- soup = BeautifulSoup(html_content, 'html.parser')
- # Return parsed HTML
- return soup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement