title: Python: BeautifulSoup extract all the h1 text from div class
body: <pre><code>from requests import get
  from bs4 import BeautifulSoup
  
  res = get('https://www.ceda.com.au/Events/Upcoming-events')
  soup = BeautifulSoup(res.text,"lxml")
  
  
  event_location = '\n'.join([' '.join(item.find_parent().select("span")[0].text.split()) for item in soup.select(".side-list .icon-map-marker")])
  print(event_location)
  
  
  event_date = '\n'.join([' '.join(item.find_parent().select("span")[0].text.split()) for item in soup.select(".side-list .icon-calendar")])
  print(event_date)
  
  
  event_name = '\n'.join([' '.join(item.find_parent().select("class")[0].text.split()) for item in soup.select(".event-detail-bx .h1")])
  print(event_name)
  </code></pre>
  
  <p>I'm trying to extract the <strong>event date,location</strong> and <strong>event name</strong> from the website, I successed in getting event date, Event hyperlink and locaion inforamtion.</p>
  
  <p>But I failed to extract the <strong>Event Name</strong> information, Can some one help me in extracting all the Event names and hyderlinks of each event?</p>