-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b29d77a
commit ca1d9e7
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ betikaProvider.getConfig(); | |
|
||
const betikaScrapper = new BetikaScrapper(); | ||
betikaScrapper.fetchData(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |