MCPcopy Create free account
hub / github.com/Vinyzu/Botright / main

Function main

tests/dev_test.py:6–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6async def main():
7 botright_client = await botright.Botright(headless=False)
8 browser = await botright_client.new_browser()
9
10 single_url = ["https://abrahamjuliot.github.io/creepjs/", "https://nowsecure.nl/#relax"]
11 # webrtc_urls = ["https://browserleaks.com/webrtc", "https://www.expressvpn.com/en/webrtc-leak-test", "https://www.vpnmentor.com/tools/ip-leak-test-vpns-tor/",
12 # "https://surfshark.com/en/webrtc-leak-test", "https://hide.me/en/webrtc-leak-test", "https://www.hidemyass.com/en-en/webrtc-leak-test", "https://abrahamjuliot.github.io/creepjs/"]
13 # all_urls = ["https://abrahamjuliot.github.io/creepjs/", "https://hmaker.github.io/selenium-detector/", "https://arh.antoinevastel.com/bots/", "https://antoinevastel.com/bots/datadome",
14 # "https://datadome.co/bot-tester/", "https://mihneamanolache.github.io/simple-sw-test/", "https://bot.sannysoft.com/", "https://bot.incolumitas.com/",
15 # "https://www.whatismybrowser.com/detect/client-hints/", "https://nopecha.com/demo/recaptcha#v3", "https://iphey.com/", "https://www.browserscan.net/", "https://pixelscan.net",
16 # "https://fingerprint.com/products/bot-detection/", "https://nowsecure.nl/#relax"]
17 #
18 for url in single_url:
19 page = await browser.new_page()
20 await page.goto(url)
21
22 # await page.goto("https://www.aircanada.com/aeroplan/redeem/availability/outbound?org0=JFK&dest0=LHR&departureDate0=2024-01-01&lang=en-CA")
23
24 await page.wait_for_timeout(900000)
25
26 await botright_client.close()
27
28
29if __name__ == "__main__":

Callers 1

dev_test.pyFile · 0.85

Calls 3

new_browserMethod · 0.80
new_pageMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected