Skip to content

Commit

Permalink
Create xvideoss.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ERLANRAHMAT authored Nov 25, 2023
1 parent 3c578b2 commit 40ef619
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tools/download/xvideoss.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
Tools Xvideos Search
*/

const axios = require('axios');
const { baseUrl } = require('../config.js')

async function xvideoss(q) {
try {
const { data } = await axios.get(`${baseUrl}/tools/xvideosearch?q=${q}`, {
headers: {
'accept': 'application/json',
},
});
return data;
} catch (error) {
console.error(error);
return 'Internal Server Error!';
}
}

module.exports = { xvideoss }

0 comments on commit 40ef619

Please sign in to comment.