medi-nline
· One min read
medi-nline is a Node CLI web scraper that fetches products from a pharmacy website, which are printed and optionally saved as csv.
Example
Scrape 50 products:
npm start 50
Example output:
Fetching [50] products ...
Got [50] products from [10] pages (in [1] fetch with concurrency [10])
Showing [50] products:
name,price,retailPrice
Selsun Dandruff Treatment Shampoo 2.5% 100ml,£3.29
HuxD3 20,000 IU 30 Vegetarian Capsules,£6.79
...
Solpadeine Max Soluble Tablets 32,£7.89,£8.09
Save products as csv? (y or N): n
Did not write products
