# source /path/to/virtualenv/bin/activate # On Unix or MacOS # source /config/miniconda3/envs/py/bin/activate # pip install requests beautifulsoup4 schedule selenium # wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb # sudo dpkg -i google-chrome-stable_current_amd64.deb # apt install libnss3 libxss1 import requests from bs4 import BeautifulSoup # # import schedule import time from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager import time # pip install requests beautifulsoup4 schedule # Initialize WebDriver service = Service(ChromeDriverManager().install()) driver = webdriver.Chrome(service=service) def check_pairs_sel(): try: # Open the page driver.get("https://www.dextools.io/app/en/bnb/pool-explorer") time.sleep(10) # Wait for JavaScript to execute # Extract the page source html = driver.page_source soup = BeautifulSoup(html, 'html.parser') # Assuming the pairs are listed in