mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-13 22:29:44 -04:00
wrote python script to decode html entities in scraped text
This commit is contained in:
1 parent
07caa27fce
commit
70f0b7cb3b
1 file changed
+13
@@ -0,0 +1,13 @@
|
|||||||
|
import html
|
||||||
|
|
||||||
|
def main():
|
||||||
|
|
||||||
|
# read in the file
|
||||||
|
with open("../data/yaml/monsters.yaml", 'r') as content_file:
|
||||||
|
content = content_file.read()
|
||||||
|
# print(html.unescape(content))
|
||||||
|
with open("../data/yaml/monsters-fixed.yaml", 'w') as outfile:
|
||||||
|
outfile.write(html.unescape(content))
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Reference in new issue
Block a user