This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import html, etree as ET | |
import unicodedata | |
from io import StringIO | |
import requests | |
import csv | |
def normalize_key(key): | |
output = unicodedata.normalize('NFKD', key).encode('ASCII', 'ignore') | |
return output.title().decode("utf-8").lower().replace(' ', '_') |