Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var request = require("request"),
  2.     cheerio = require("cheerio"),
  3.     url = "CАЙТ" + 02888;
  4.  
  5. request(url, function (error, response, body) {
  6.     if (!error) {
  7.         var $ = cheerio.load(body),
  8.             info = $("элемент").html();
  9.  
  10.         console.log(info);
  11.     } else {
  12.         console.log("Произошла ошибка: " + error);
  13.     }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement