Installation
npm install --save @trunqkj3n/scraper
Use
const ttk = require("@trunqkj3n/scraper")
import ttk from "@trunqkj3n/scraper"
Meitu Cartoon
import { meitu } from "@trunqkj3n/scraper"
import fs from "fs-extra"
meitu("https://i.imgur.com/D8fKa88.jpg").then(({ base64 }) => fs.writeFileSync("./meitu_cartoon.png", base64, "base64"))
Y2Mate
import { getY2mateResponse } from "@trunqkj3n/scraper"
getY2mateResponse("https://www.youtube.com/watch?v=GxldQ9eX2wo").then(console.log).catch(console.error);
{
imageSrc: 'https://i.ytimg.com/vi/GxldQ9eX2wo/0.jpg',
title: 'Stephen Sanchez - Until I Found You (Official Music Video)',
size: '2.7 MB',
type: 'mp3',
quality: '128',
downloadLink: 'https://dl69.dlmate15.online/?file=M3R4SUNiN3JsOHJ6WWQ2a3NQS1Y5ZGlxVlZIOCtyZ1hqTkFxenhVdFNwaE5xSTRuMHY3cmFQeEJPcTREaHFQcE45RkIrenFUU04rZWV5Q1BzSkVsUzNLTnZQc29xamJNdUxncFhjeCtHQnZveUtDbG56MXp0aGYwYXRDUVVPcHdkSGh1dDFWaDFtUEI2dnpFNmxDcWxYbm85V3VrZENnT2cySU9CYWZIL3RGRnhUcU5hUExyanFZcjZ5T0g4cE5iMytTVXVRU3JrdVJtNkkwdENod2tLdFpQM0p6SzNQakpwa3hFMGQ4UDAxZWg5TEQrVXNadFRmZllhaUV0T2lCZg%3D%3D'
}
Snaptik
import { snapTik } from "@trunqkj3n/scraper"
snapTik("https://www.tiktok.com/@huyleexxx/video/7042559928573168898?q=m%C6%B0a%20tuy%E1%BA%BFt&t=1680181448159").then(console.log).catch(console.error);
{
title: 'Hm nay khng Remix nh, nh nhng th thi #huylee #duongedward #cover #xuhuong',
author: 'Huy Lee',
download: 'https://cdn.snaptik.app/v2/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2FwaTE2LW5vcm1hbC1jLXVzZWFzdDFhLnRpa3Rva3YuY29tL2F3ZW1lL3YxL3BsYXkvP3ZpZGVvX2lkPXYxMDAyNWc1MDAwMGM2dTM1MHJjNzd1YjJicWpoYzAwJmxpbmU9MCZpc19wbGF5X3VybD0xJnNvdXJjZT1QYWNrU291cmNlRW51bV9BV0VNRV9ERVRBSUwmZmlsZV9pZD1kNGUwZDkwOTEyOTU0ZTZkOTZiMTExYzJkNzBhYTllNiIsImZpbGVuYW1lIjoiU25hcHRpay5hcHBfNzA0MjU1OTkyODU3MzE2ODg5OC5tcDQiLCJleHAiOjE2ODAxODUwMzR9._djP_VlxShCV2LEV931wIPbpUSKosd50ZKDU4190Pdc&dl=1'
}
Snapsave
import { snapSave } from "@trunqkj3n/scraper"
snapSave("https://fb.watch/jBgNhRo-pc/").then(console.log).catch(console.error);
{
author: 'Video Facebook',
title: '...',
download: 'https://video-otp1-1.xx.fbcdn.net/v/t39.25447-2/332140508_1151962815488242_5595224012878106935_n.mp4?_nc_cat=109&vs=c1ccf5841f9ab7c3&_nc_vs=HBksFQAYJEdOd1B6QlB5WUdrX3RCY0VBRGZSVlU2WU9xWk5ibWRqQUFBRhUAAsgBABUAGCRHSkItanhETEpYN2JWMGNDQUFLUFJLVDExMG9hYnY0R0FBQUYVAgLIAQBLB4gScHJvZ3Jlc3NpdmVfcmVjaXBlATENc3Vic2FtcGxlX2ZwcwAQdm1hZl9lbmFibGVfbnN1YgAgbWVhc3VyZV9vcmlnaW5hbF9yZXNvbHV0aW9uX3NzaW0AKGNvbXB1dGVfc3NpbV9vbmx5X2F0X29yaWdpbmFsX3Jlc29sdXRpb24AHXVzZV9sYW5jem9zX2Zvcl92cW1fdXBzY2FsaW5nABFkaXNhYmxlX3Bvc3RfcHZxcwAVACUAHAAAJvbn4aqhqL0RFQIoAkMzGAt2dHNfcHJldmlldxwXQEO3bItDlYEYKWRhc2hfaTRsaXRlYmFzaWNfNXNlY2dvcF9ocTJfZnJhZ18yX3ZpZGVvEgAYGHZpZGVvcy52dHMuY2FsbGJhY2sucHJvZDgSVklERU9fVklFV19SRVFVRVNUGwqIFW9lbV90YXJnZXRfZW5jb2RlX3RhZwZvZXBfaGQTb2VtX3JlcXVlc3RfdGltZV9tcwEwDG9lbV9jZmdfcnVsZQd1bm11dGVkE29lbV9yb2lfcmVhY2hfY291bnQGNTgyMTgwEW9lbV9pc19leHBlcmltZW50AAxvZW1fdmlkZW9faWQPNjY3MzQ3MjM0NTQ4OTQyEm9lbV92aWRlb19hc3NldF9pZA82ODA5Nzk4NTMyMjgyMjkVb2VtX3ZpZGVvX3Jlc291cmNlX2lkEDQ5MTk5MDY2OTE0NjM2NzUcb2VtX3NvdXJjZV92aWRlb19lbmNvZGluZ19pZA84NzgzOTI4NzM0NTM3MjgOdnRzX3JlcXVlc3RfaWQAJQIcACW%2BARsHiAFzBDM4MTMCY2QKMjAyMi0wNC0wMgNyY2IGNTgyMTAwA2FwcAZWaWRlb3MCY3QZQ09OVEFJTkVEX1BPU1RfQVRUQUNITUVOVBNvcmlnaW5hbF9kdXJhdGlvbl9zBjM5LjQ1MQJ0cxVwcm9ncmVzc2l2ZV9lbmNvZGluZ3MA&ccb=1-7&_nc_sid=189a0e&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ohc=DE6xZ-zJMzsAX9LLj-n&_nc_ht=video-otp1-1.xx&oh=00_AfCSEl507wxC__JnEZ2PrLU-xggTMhAk72M7gsf8HEnTJw&oe=642B349D&_nc_rid=056648230741161&dl=1'
}
Tools
import { facebook_fuid } from "@trunqkj3n/scraper"
facebook_fuid("https://www.facebook.com/thieutrungki3n").then(console.log).catch(console.error)
{ uid: '100056992160405', vanity: 'thieutrungki3n' }
Authors