LimeSoup is a package to parse HTML or XML papers from different publishers. It can be used to feed a database.
Full Usage:
from LimeSoup import (
ACSSoup,
AIPSoup,
APSSoup,
ECSSoup,
ElsevierSoup,
IOPSoup,
NatureSoup,
RSCSoup,
SpringerSoup,
WileySoup,
)
with open(article, 'r', encoding = 'utf-8') as f:
html_str = f.read()
***Choose correct publisher
data = ECSSoup.parse(html_str)
with open('file_test.json', 'w', encoding = 'utf-8') as f:
json.dump(data, f, sort_keys=True, indent=4, ensure_ascii=False)
Currently, we have implemented the following parsers:
Please refer to the wiki pages.
Please see change logs.
LimeSoup was contributed to by these genius people:
If you are planning to use LimeSoup in your work, please consider citing the following paper: