akkun3704 commited on
Commit
22ae60e
·
1 Parent(s): 0b644dd

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -1
index.js CHANGED
@@ -3,7 +3,9 @@ const bytes = require('bytes')
3
  const logger = require('morgan')
4
  const cheerio = require('cheerio')
5
  const express = require('express')
6
- const { chromium } = require('playwright')
 
 
7
 
8
  const app = express()
9
  app.set('json spaces', 4)
@@ -64,6 +66,7 @@ async function xbuddy(url) {
64
 
65
  await page.goto(`https://9xbuddy.in/process?url=${url}`)
66
  console.log(await page.content())
 
67
  const response = await page.waitForResponse(res =>
68
  res.url().includes('extract') && res.request().method() === 'POST')
69
 
 
3
  const logger = require('morgan')
4
  const cheerio = require('cheerio')
5
  const express = require('express')
6
+ const stealth = require('puppeteer-extra-plugin-stealth')
7
+ const { chromium } = require('playwright-extra')
8
+ chromium.use(stealth())
9
 
10
  const app = express()
11
  app.set('json spaces', 4)
 
66
 
67
  await page.goto(`https://9xbuddy.in/process?url=${url}`)
68
  console.log(await page.content())
69
+
70
  const response = await page.waitForResponse(res =>
71
  res.url().includes('extract') && res.request().method() === 'POST')
72