from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = webdriver.FirefoxOptions()
options.add_argument('--headless')
driver = webdriver.Firefox(options=options)
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
url = ''
driver.get(url)
WebDriverWait(driver,10).until(EC.presence_of_element_located((By.CLASS_NAME, 'OOOO')))
html = driver.page_source
soup = bs4.BeautifulSoup(html , 'html.parser')
ttl = soup.title.getText()