navpan2 commited on
Commit
ff6899b
·
1 Parent(s): 8fbb821

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -21
main.py CHANGED
@@ -1,21 +1 @@
1
- import time
2
- from bs4 import BeautifulSoup
3
- from selenium import webdriver
4
- from selenium.webdriver.chrome.service import Service
5
- from selenium.webdriver.chrome.options import Options
6
- from webdriver_manager.chrome import ChromeDriverManager
7
- chrome_options = Options()
8
- chrome_options.add_argument('--no-sandbox')
9
- chrome_options.add_argument('--headless')
10
- chrome_options.add_argument('--disable-gpu')
11
- chrome_options.add_argument('--disable-dev-shm-usage')
12
- driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()),options=chrome_options)
13
- url= 'https://navpan2-dockerbot.hf.space/'
14
- driver.get(url)
15
- time.sleep(5)
16
- soup = BeautifulSoup(driver.page_source,'lxml')
17
- headings = soup.find_all( name= 'span')
18
- for heading in headings:
19
- print(heading.getText())
20
- time.sleep(2)
21
- driver.quit()
 
1
+ print("heelo world")