Skip to content

Instantly share code, notes, and snippets.

@adorum
adorum / drinkshop_parser.py
Created September 3, 2019 22:04
Drinkshop
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(' ', '_')