honey234's picture
sdfsd
2b3e1c6
raw
history blame contribute delete
421 Bytes
import time
from selenium_driverless import webdriver
import asyncio
async def main():
options = webdriver.ChromeOptions()
async with webdriver.Chrome(options=options) as driver:
await driver.get('https://www.reddit.com')
time.sleep(3)
title = await driver.title
url = await driver.current_url
source = await driver.page_source
print(title)
asyncio.run(main())