Skip to content

Commit

Permalink
Commit work
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelnindodev committed Oct 17, 2023
1 parent b29d77a commit ca1d9e7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
33 changes: 33 additions & 0 deletions src/testbed/captcha_testbed.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { setTimeout } from "timers/promises";

import * as puppeteer from 'puppeteer';
//const puppeteer = require('puppeteer-extra');

//const stealthPlugin = require('puppeteer-extra-plugin-stealth');
//puppeteer.use(stealthPlugin());


class CaptchaTestBed {
private url: string;

constructor() {
this.url = "https://app.zenrows.com/register";
}

public async run() {
try {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto(this.url);
await setTimeout(30000);
const html = await page.content();
console.log("Page content:")
console.log(html);
} catch (e: any) {
console.error(e.message);
}
}
}

const captchaTestBed = new CaptchaTestBed();
captchaTestBed.run();
1 change: 0 additions & 1 deletion src/testbed/testbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ betikaProvider.getConfig();

const betikaScrapper = new BetikaScrapper();
betikaScrapper.fetchData();

2 changes: 1 addition & 1 deletion src/testbed/testbed_2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BetikaParser } from "../core/parsers/betika";

const betikaParser = new BetikaParser()
betikaParser.subscribeToChannels();
betikaParser.subscribeToChannels();

0 comments on commit ca1d9e7

Please sign in to comment.