title: how i can open up many links with chromedriver that are stored in one variable
body: <p>So i wrote this code for now to web-scrape cnn and get articles about a specific topic:</p>
  <pre><code>from bs4 import BeautifulSoup
  import time
  from selenium import webdriver
  from webdriver_manager.chrome import  ChromeDriverManager
  from selenium.webdriver.chrome.service import Service
  import sys
  import json
  import os
  
  serch = input('What News are you looking for today? ')
  serch_term = str(serch)
  real_serch = f'{serch_term}'
  
  url = f'https://edition.cnn.com/search?q={real_serch}'
  
  options = webdriver.ChromeOptions()
  options.add_argument(&quot;--ignore-certificate-error&quot;)
  options.add_argument(&quot;--ignore-ssl-errors&quot;)
  service = Service(executable_path='chromedriver.exe')
  driver = webdriver.Chrome(service=service, options=options)
  
  driver.get(url)
  time.sleep(4)
  
  soup = BeautifulSoup(driver.page_source, 'html.parser')
  #driver.close()
  
  SAVED_DATA = &quot;data.json&quot;
  
  def save_data(filepath, data):
      with open(filepath, &quot;w&quot;) as f:
          json.dump(data, f)
      
  
  def load_data(filepath):
      try:
          with open(filepath, &quot;r&quot;) as f:
              data = json.load(f)
              return data
      except:
          return {}
  
  def only_get_title():
      for h3 in soup.select('h3.cnn-search__result-headline &gt; a'):
          title=h3.text
          return(title)
  
  def get_href():
      for h3 in soup.select('h3.cnn-search__result-headline &gt; a'):
          title = h3.text
          url_ = h3.get('href')
          abs_url = 'https:'+ url_
          return(abs_url)
  
  def store():
          data = load_data(SAVED_DATA)
          key = only_get_title()
          data[key] = get_href()
          save_data(SAVED_DATA, data)
          print(&quot;News saved!&quot;)
  
  
  if __name__ == '__main__':
      store()
  </code></pre>
  <p>my question is that in abs_url are stored many links, of the different articles taht were found on that subject on cnn so, i want to go to every of these links and save the data, but it will only open up the first link stored in abs_url and not the other how can i do that i open up every link and save every link in my json file as you can see in the code</p>