title: Web scrape get drop-down menu data python
body: <p>I am trying to get a list of all countries in the webpage <a href="https://www.nexmo.com/products/sms" rel="nofollow noreferrer">https://www.nexmo.com/products/sms</a>. I see the list is displayed in the drop-down. After inspecting the page, I tried the following code but I must be doing something wrong. I would appreciate some help here.</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  # collect and parse page
  page = requests.get('https://www.nexmo.com/products/sms')
  soup = BeautifulSoup(page.text, 'html.parser')
  # pull all text from the div
  name_list = soup.find(class_ ='dropdown-content')
  print(name_list)
  </code></pre>