title: Can't fetch two fields accordingly from a website
body: <p>I've written a script in python to get two fields from a webpage. I have tried one item (the first one conditionally) and the other one using list comprehension. Finally, I've appended them to a list to print the result.</p>
  
  <p>I've two questions:</p>
  
  <ol>
  <li>What is the ideal way to parse one item conditionally and the other one using list comprehension within the same for loop.</li>
  <li><p>When i print the result, i get them like following</p>
  
  <p>[[], [], [], 'EUROMESSAGE EXPRESS', [], [], [], [], [], [], [], ['info@euromessageexpress.com'], [], [], [], [], [], [], [], []]</p></li>
  </ol>
  
  <p>My expected output:</p>
  
  <pre><code>EUROMESSAGE EXPRESS info@euromessageexpress.com
  </code></pre>
  
  <p>Not like this:</p>
  
  <pre><code>EUROMESSAGE EXPRESS 
  info@euromessageexpress.com
  </code></pre>
  
  <p><a href="http://www.fretonline.com/Transport.php?transporteur=EUROM2OCAS&amp;&amp;Nom_Transporteur=EUROMESSAGE_EXPRESS&amp;&amp;Transport_Ville=CASABLANCA" rel="nofollow noreferrer">Link to the webpage</a></p>
  
  <p>This is my script:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  
  url = "find the url above"
  
  req = requests.get(url)
  sauce = BeautifulSoup(req.text,"lxml")
  
  data = []
  for items in sauce.select_one("table[width='610']").select("tr"):
      for item in items.select("td"):
          if "Raison" in item.text:
              raison = item.find_next_sibling().get_text(strip=True)
              data.append(raison)
  
      email = [item.text for item in items.select("a[href^='mailto:']")]
      data.append(email)
  
  print(data)
  </code></pre>