code: def get_ip_location(ip):
      
      ip = 'http://ip.chinaz.com/' + ip
      html = requests.get(ip)
      ip_info = BeautifulSoup(html.text, 'lxml')
      ip_loc = ip_info.find_all('span', {'class': 'Whwtdhalf w50-0'})
      return ip_loc[-1].text
docs: 获取ip的地理位置信息