Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Help to transcode JS with lib #160

Open
Alt0car opened this issue Dec 16, 2021 · 4 comments
Open

Help to transcode JS with lib #160

Alt0car opened this issue Dec 16, 2021 · 4 comments

Comments

@Alt0car
Copy link

Alt0car commented Dec 16, 2021

Hello,

I'm trying to transcode this code in php using your lib :

await page.waitForResponse((response) => {
return response.url().startsWith(https://github.com/search/count?p=${pageNum}) && response.status() === 200;
});

i'm ok about the default $page->waitForResponse() but how can i manipulate/write response object with your lib ?

@beshoo
Copy link

beshoo commented Dec 16, 2021 via email

@Alt0car
Copy link
Author

Alt0car commented Dec 17, 2021

not helpfull and really free response ...

This have no documentation and i need to manipulate response object with.
So if you have answer teach me or just go away :)

@beshoo
Copy link

beshoo commented Dec 17, 2021 via email

@Alt0car
Copy link
Author

Alt0car commented Dec 18, 2021

Firstly I have been a php developer for 15 years now, however I have rarely seen such a poorly documented package, hence the fact that I ask if anyone has already done so.

In view of your answer, I will have done more quickly to develop in nodejs using the original pupeteer library.
More documented and less toxic community when asking for help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants