Skip to content

Commit 7d0f569

Browse files
committed
Add async example of solving "Friendly Captcha"
1 parent 7abc5e4 commit 7d0f569

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""(Bypasses Friendly Captcha)"""
2+
import asyncio
3+
from seleniumbase import cdp_driver
4+
5+
6+
async def main():
7+
url = "https://muse.jhu.edu/verify"
8+
driver = await cdp_driver.start_async(guest=True)
9+
page = await driver.get(url)
10+
await page.sleep(2.5)
11+
await page.solve_captcha()
12+
await page.sleep(4)
13+
await page.find('#search_input')
14+
await page.sleep(3)
15+
16+
if __name__ == "__main__":
17+
loop = asyncio.new_event_loop()
18+
loop.run_until_complete(main())

0 commit comments

Comments
 (0)