Restored upcoming in Bang! scraper, added Bang! Adventures site.

This commit is contained in:
DebaucheryLibrarian
2023-01-03 23:32:52 +01:00
parent 5cda0f741d
commit 306744f415
43 changed files with 17 additions and 0 deletions

View File

@@ -165,6 +165,16 @@ async function fetchLatest(channel, page = 1) {
return res.status;
}
async function fetchUpcoming(channel) {
const url = `${channel.url}&early-access=true`;
const res = await unprint.get(url, { selectAll: '.search-grid li' });
if (res.ok) {
return scrapeAll(res.context, channel);
}
return res.status;
}
async function fetchProfile({ name: actorName }, { entity }, include) {
const searchRes = await unprint.get(`https://www.bang.com/pornstars?term=${slugify(actorName, '+')}`);
@@ -190,6 +200,7 @@ async function fetchProfile({ name: actorName }, { entity }, include) {
module.exports = {
fetchLatest,
fetchUpcoming,
fetchProfile,
scrapeScene,
useUnprint: true,