UNPKG

@hazeloffc/google

Version:

All-in-one Google scrapers: Search, Images, News, Scholar, Maps, Trends

10 lines (7 loc) 320 B
const { getHTML } = require('../utils/request'); const { parseShopping } = require('../utils/parser'); async function googleShopping(query) { const html = await getHTML(`https://www.google.com/search?tbm=shop&q=${encodeURIComponent(query)}`); return parseShopping(html); } module.exports = { googleShopping };