File size: 676 Bytes
236282f
 
 
 
aa9a515
236282f
756c8e6
236282f
 
756c8e6
236282f
 
 
 
756c8e6
236282f
 
aa9a515
236282f
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import time
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from seleniumbase import BaseCase

class MyTestClass(BaseCase):

    def test_basic(self):
        options = uc.ChromeOptions()

        # Uncomment the line below if you'd like to use a headless browser
        # options.headless=True
        
        driver = uc.Chrome(options=options)

        driver.get("https://d000d.com/e/9b3w45p3h2gz")
        time.sleep(5)  # wait 5 seconds before getting the page source

        print(driver.page_source)  # print the page source

        driver.quit()
        

if __name__ == '__main__':
    case = MyTestClass()
    case.test_basic()