-
Notifications
You must be signed in to change notification settings - Fork 51
Description
I am using this package for my mobile app client.
when user browse the urls on mobile devices, we pass the url to back-end sever and use this package to scrape the metadata, but if those mobile responsive urls are not supported on desktop then it doesn't extract the metadata as the package is executed on server.
sample url: https://www.m.webmd.com/vitamins/ai/ingredientmono-483/peanut-oil
this is mobile responsive url and if you browse on desktop machine it will give an error.
I tried changing the user-agent in headers but it does not work.
var client = new MetaInspector(param.url, {timeout: 10000, headers:‘Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36’});