wikimedia / html-metadata

MetaData html scraper and parser for Node.js (supports Promises and callback style)
MIT License
165 stars 44 forks source link

passing url without http fails #88

Open moblizeit opened 4 years ago

moblizeit commented 4 years ago

i am passing url like www.lightercapital.com rather http://lightercapital.com and this fails with error

HTTPError: Invalid URI "www.lightercapital.com" at request.then (/srv/node_modules/preq/index.js:246:19)

is it possible to handle this?

aptvaibhav commented 4 years ago

can u please share the concerned code? And yes its possible to handle this.

aptvaibhav commented 4 years ago

I just tried doing what u are saying it works perfectly fine with me. No error is coming.