kyuurzy

The Hentai Download

Oct 9th, 2025
76
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.86 KB | Source Code | 0 0
  1. const cheerio = require("cheerio")
  2. const axios = require("axios")
  3.  
  4. async function thdown(url) {
  5.   const { data: html } = await axios.get(url);
  6.   const $ = cheerio.load(html);
  7.   const title = $('head > title').text().trim();
  8.   const description = $('div.descricao').text().trim();
  9.   const gallery = [];
  10.   $('div.post_imgs .miniaturas a').each((i, elem) => {
  11.     const href = $(elem).attr('href');
  12.     const imgSrc = $(elem).find('picture img').attr('src');
  13.     const altText = $(elem).find('picture img').attr('alt');
  14.    
  15.     gallery.push({
  16.       href: 'https://en.thehentai.net' + href,
  17.       imgSrc: 'https://en.thehentai.net' + imgSrc,
  18.       alt: altText
  19.     });
  20.   })
  21.    
  22.   return {
  23.     title,
  24.     description,
  25.     gallery
  26.   }
  27. }
  28.  
  29. //use
  30. const ttk = await thdown("https://en.thehentai.net/marin-kitagawa/")
  31. console.log(JSON.stringify(ttk, null, 2));
Tags: Scrape
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment