Restored upcoming in Bang! scraper, added Bang! Adventures site.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user