resp = requests.get(url) resp.encoding = 'utf-8' answer_list = [] if resp: bs_data = BeautifulSoup(resp.text, 'lxml')