Skip to content

Instantly share code, notes, and snippets.

@charlesriondet
charlesriondet / HTML2TEI.py
Last active September 22, 2017 14:05
A Python script to convert bibliographical references taken from HTML files in TEI <biblStruct> elements using the GROBID service.
#coding:utf-8
import xml.etree.ElementTree as ET
import requests
import re
import codecs
import time
currentDate=time.strftime("%A %B %d %Y, %I:%M:%S")