858 B
858 B
epo-api
Makes patents searchable with Elasticsearch.
Requirements
- elasticsearch 8.4.3 or newer
- lxml 4.9.2 or newer
- xmltodict
xml_to_json.py
-
takes a path to the xml-files
-
parses xml-files into json-files
-
saves jsons to disc
-
normal start: python xml_to_json.py path-to-xmls
-
now with wanted_ipc support
- if you want just the patents with specific ipcs
- start with wanted_ipcs: python xml_to_json.py path-to-xmls wanted_ipc_1,wanted_ipc_2,wanted_ipc_3
- example: python xml_to_json.py D:/xmls E06B3/54,E06B3/55,E06B3/40
- list of all wanted ipcs with commas separated
- ipc format: E06B3/54
- whole ipc: E06B 3/54 19680901AFI20140203BHEP -> wanted ipc: E06B3/54
upload.py
- takes a path to the json-files
- checks if correct path to elasticseach is set
- uploads the json-files in an elasticseach index