Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Yandex Image Scraping

node v8.17.0
version: 1.0.0
endpointsharetweet
const cheerio = require('cheerio') const sf = require('snekfetch') const query = 'wallpaper' const locale = 'en' let html = (await sf.get(`https://www.yandex.com/images/search/?text=${query}&lang=${locale}`)).text const $ = cheerio.load(html) Array.from($('.serp-item')).map(r => JSON.parse($(r).attr('data-bem'))['serp-item'])
Loading…

no comments

    sign in to comment