This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios") | |
const cheerio = require("cheerio") | |
async function igram(url) { | |
try { | |
const encoded = encodeURIComponent(url) | |
const res = await axios.get("https://igram.website/content.php?url=" + encoded, { | |
headers: { | |
"Content-Type": "application/x-www-form-urlencoded", | |
"User-Agent": "Mozilla/5.0 (Linux; Android 10; Termux) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Donghua Update Scraper by lang | |
* package: axios, cheerio | |
* official channel: https://whatsapp.com/channel/0029VafnytH2kNFsEp5R8Q3n | |
* usage at bottom | |
*/ | |
const axios = require('axios') | |
const cheerio = require('cheerio') |