title: Save web scraped result to txt files by names
body: <p>I scraped a list of professor contact information from a school website, and now I want to save them individually by name, each name txt file contains their email, tel and office.
  <a href="https://i.stack.imgur.com/j8Dti.png" rel="nofollow noreferrer">ideal outcome</a></p>
  <p>Currently my code is</p>
  <pre><code>from bs4 import BeautifulSoup as bs
  import requests
  url = 'https://www.cb.cityu.edu.hk/is/people/academic.html'
  webpage = requests.get(url)
  page = bs(webpage.content, 'html.parser')
  
  #define list
  name_list = []
  phone_list = []
  email_list = []
  result = page.find_all('div', attrs = {'class': 'staff-details'})
  for person in result:
      print(person.text)
  </code></pre>