Python Forum
How to extract links from grid located on webpage
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extract links from grid located on webpage
#4
Use get_attribute() to get the href attribute.
link = browser.find_element(By.CSS_SELECTOR, '#__next > div > main > div.css-pb7yb6 > div > div:nth-child(1) > a')
>>> link.get_attribute('href')
'https://www.arte.tv/fr/videos/110984-006-A/superpoze/'
Pavel_47 likes this post
Reply


Messages In This Thread
RE: How to extract links from grid located on webpage - by snippsat - Dec-23-2022, 09:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  extract javascript links Larz60+ 0 1,852 Feb-16-2022, 10:49 AM
Last Post: Larz60+
  getting links from webpage and store it into an array apollo 1 2,643 May-22-2021, 03:35 PM
Last Post: perfringo
  Want to extract 4 tables from webpage - Nubee Stuck :( andrewjmdata1 0 1,781 Apr-19-2020, 05:42 PM
Last Post: andrewjmdata1
  Extract data from a webpage cycloneseb 5 2,996 Apr-04-2020, 10:17 AM
Last Post: alekson
  webscrapping links and then enter those links to scrape data kirito85 2 3,330 Jun-13-2019, 02:23 AM
Last Post: kirito85

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020