I'm trying to scrape specific href links but I can only grab no links or every link possible on the website is it possible to grab every link that's within a div tag? the div tags have the same exact name but I can't find a way to look within the div tag then grab the href tags
here is the code that I am currently using is any work around on this?
rom selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait, Select
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
# Establish chrome driver and go to report site URL
url = "https://navalcommand.enjin.com/forum/viewforum/2989694/m/11178354/page/1"
driver = webdriver.Chrome()
driver.get(url)
elems = driver.find_elements(By.XPATH, '//a')
for elem in elems:
print(elem.get_attribute("href"))