I'm trying to get the book description from the following webpage: https://bookshop.org/books/lucky-9798200961177/9781668002452
This is what I've got so far
***EDIT***
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("--headless")
driver = webdriver.Chrome('path_to_my_driver_on_local', options=options)
driver.get('https://bookshop.org/a/16709/9781668002452')
description = driver.find_element_by_xpath("//meta[@name='description']").get_attribute("content")
description
Basically, I'm trying to get the text inside of this html:
<meta name="description" content="REESE'S BOOK CLUB PICK NEW YORK TIMES BESTSELLER A thrilling roller-coaster ride about a heist gone terribly wrong, with a plucky protagonist who will win readers' hearts. What if you had the winning ticket ....">
I end up with the following error
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//meta[@name='description']"}