zdavatz / ymeteor

Parsing Swissmedic, Pharmnet, HCP, DHCP, Chargenrückrufe, Drugshortages, PEI with Meteor
https://ywesee.com
GNU General Public License v3.0
4 stars 3 forks source link

download drugshortage Impfstoffe from PEI into JSON file #44

Closed zdavatz closed 4 years ago

zdavatz commented 4 years ago

download drugshortage Impfstoffe from PEI JSON file named impfstoffe_deutschland_lieferengpass.json

zdavatz commented 4 years ago

option used should be meteor --settings pei.json --once

zdavatz commented 4 years ago

How about converting one or more linebreaks (\n) into a sub-JSON-Tag?

zdavatz commented 4 years ago

if it one linebreak (\n) then replace it with a space.

latest-screenshot

if it is two or more linebreaks (\n) then replace it with a sub-tag

latest-screenshot

zdavatz commented 4 years ago

again here: the first three lines each have one \n replace that with a space. But the next lines are separated by two \n\n to that inform into separate tags.

latest-screenshot

zdavatz commented 4 years ago

latest-screenshot

zdavatz commented 4 years ago

link close tags

latest-screenshot

zdavatz commented 4 years ago

start from the item tag

latest-screenshot