fakebrowser icon indicating copy to clipboard operation
fakebrowser copied to clipboard

Typescript conversion + big changes.

Open UrielCh opened this issue 2 years ago • 13 comments

Hi

I have just opened a PR containing a Typescript version of puppeteer-extra

Would a full Typescript PR for this project be accepted?

After spending a full week on my puppeteer-extra fork, fakebrowser look's so easy to work with.

Is there some WIP part of the code that should not be touched?

Can I add some export to fakebrowser to use it as a lib to manage fingerprint data?

UrielCh avatar Jun 10 '22 15:06 UrielCh

@UrielCh Hello. i trying to use your fork but something went wrong. Maybe you can leave any guide to use your update?

Hoodognik avatar Jul 20 '22 00:07 Hoodognik

send me an error message plz.

the active branch is: heavy-duty

but depend of my fork of pptr-extra, that is being reimplemente on the main project

see: https://github.com/berstend/puppeteer-extra/issues/646 https://github.com/berstend/puppeteer-extra/pull/649

UrielCh avatar Jul 20 '22 05:07 UrielCh

something like that should work:

npm install -g pnpm yarn
git clone https://github.com/UrielCh/puppeteer-extra-ts
cd puppeteer-extra-ts;
npx json -I -f package.json -e 'this.resolutions={}'
yarn install
yarn bootstrap
yarn lerna add --dev puppeteer@14
yarn lerna link
yarn lerna run build --concurrency 1
cd ..
git clone https://github.com/UrielCh/fakebrowser.git -b heavy-duty
cd fakebrowser
pnpm install
pnpm run build

UrielCh avatar Jul 20 '22 08:07 UrielCh

@UrielCh thank you. I will try and later will comeback with report of result. actually could be nice have ability install packages just with "yarn add" or "npm install" with automatic build in install process. I make app used nodegui and want to integrate this. In this case abit difficult to implement that to current project

Hoodognik avatar Jul 20 '22 17:07 Hoodognik

berstend mostly accept my change, but integrating them one by one, will take time.

UrielCh avatar Jul 20 '22 18:07 UrielCh

Hello @UrielCh i am trying configure with tutorial you posted

npm install -g pnpm yarn git clone https://github.com/UrielCh/puppeteer-extra-ts cd puppeteer-extra-ts; npx json -I -f package.json -e 'this.resolutions={}' yarn install yarn bootstrap yarn lerna add --dev puppeteer@14 yarn lerna link yarn lerna run build --concurrency 1 cd .. git clone https://github.com/UrielCh/fakebrowser.git -b heavy-duty cd fakebrowser pnpm install pnpm run build

and getting error

: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

kbondnewera avatar Aug 18 '22 18:08 kbondnewera

src/core/FakeBrowser.ts:7:10 - error TS2614: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

7 import { PuppeteerExtra } from 'puppeteer-extra'; ~~~~~~~~~~~~~~

src/core/PptrPatcher.ts:9:10 - error TS2614: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

9 import { PuppeteerExtra, PuppeteerExtraPlugin } from 'puppeteer-extra' ~~~~~~~~~~~~~~

src/core/Driver.ts:4:20 - error TS2614: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

4 import { addExtra, PuppeteerExtra, PuppeteerExtraPlugin } from 'puppeteer-extra' ~~~~~~~~~~~~~~

Found 3 errors.

 ELIFECYCLE  Command failed with exit code 1.

kbondnewera avatar Aug 18 '22 18:08 kbondnewera

I used my for of PuppeteerExtra to make it works, that why it do not build out of the box.

UrielCh avatar Aug 19 '22 17:08 UrielCh

Hello @UrielCh i am very need talk with you, have a email or telegram or contact for i am talk with you.

kbondnewera avatar Aug 19 '22 18:08 kbondnewera

i am declared your module and now another error please help me friend setup this i am pay you if need

src/core/FakeBrowser.ts:7:32 - error TS2307: Cannot find module 'puppeteer-extra-ts' or its corresponding type declarations.

7 import { PuppeteerExtra } from 'puppeteer-extra-ts'; ~~~~~~~~~~~~~~~~~~~~

kbondnewera avatar Aug 19 '22 19:08 kbondnewera

i am running and 352 lies like in the normal version this is correct, please help me friend i am pay you @UrielCh lies

kbondnewera avatar Aug 19 '22 23:08 kbondnewera

send me a PM in the Discord server, I'm always connected in All-For-Bots as uri.

UrielCh avatar Aug 21 '22 04:08 UrielCh

src/core/FakeBrowser.ts:7:10 - error TS2614: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

7 import { PuppeteerExtra } from 'puppeteer-extra'; ~~~~~~~~~~~~~~

src/core/PptrPatcher.ts:9:10 - error TS2614: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

9 import { PuppeteerExtra, PuppeteerExtraPlugin } from 'puppeteer-extra' ~~~~~~~~~~~~~~

src/core/Driver.ts:4:20 - error TS2614: Module '"puppeteer-extra"' has no exported member 'PuppeteerExtra'. Did you mean to use 'import PuppeteerExtra from "puppeteer-extra"' instead?

4 import { addExtra, PuppeteerExtra, PuppeteerExtraPlugin } from 'puppeteer-extra' ~~~~~~~~~~~~~~

Found 3 errors.

 ELIFECYCLE  Command failed with exit code 1.

i got this error too

Iquaridys avatar Aug 27 '22 13:08 Iquaridys