Skip to content

Instantly share code, notes, and snippets.

@jnguyen1098
Created April 4, 2022 02:29
Show Gist options
  • Save jnguyen1098/6e5ba1b8b0d6bc8c07384192412a36c2 to your computer and use it in GitHub Desktop.
Save jnguyen1098/6e5ba1b8b0d6bc8c07384192412a36c2 to your computer and use it in GitHub Desktop.
RFD text extractor
from selenium import webdriver
with webdriver.Chrome() as driver:
driver.get("https://forums.redflagdeals.com/hot-deals-f9/")
for elem in driver.find_elements_by_xpath("//h3[contains(@class, 'topictitle')]"):
print(elem.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment