2023-04-18 11:17:37 +07:00
|
|
|
import c from "../src/utils/options";
|
|
|
|
|
import p from "phin";
|
|
|
|
|
|
|
|
|
|
for (const url of
|
2026-03-12 16:21:04 +05:30
|
|
|
[c.PORNHUB, c.XNXX, c.REDTUBE, c.XVIDEOS, c.XHAMSTER, c.YOUPORN, c.EPORNER, c.TXXX]) {
|
2023-04-18 11:17:37 +07:00
|
|
|
p({ url }).then(res => {
|
|
|
|
|
if (res.statusCode !== 200) {
|
|
|
|
|
console.log(`${url} is not available, status code: ${res.statusCode}, check the sites or your own user-agent`);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
console.log(`${url} is available, can be scraped`);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|