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

Parse drugshortage #34

Closed zdavatz closed 4 years ago

zdavatz commented 4 years ago

Parse durgshortage.ch, main table after "nach Präparaten", grab the following columns:

Bezeichnung GTIN Pharmacode Firma Datum letzte Mutation Tage seit erster Meldung
Status Datum Lieferfähigkeit

and export to a JSON file named drugshortage.json

detailed entry links are like this: https://www.drugshortage.ch/detail_lieferengpass.aspx?ID=8083, there is one link per line in column Bezeichnung

The job should run with this option: meteor --once --settings swiss.json

@hamzamu suggests to use https://github.com/typicode/lowdb to write directly to a JSON file.

zdavatz commented 4 years ago

done with 758fec73a792e254d8b81ebb5cf9270f99f99908