Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrapper python script cannot find the snapshot #2

Open
TeoSkondras opened this issue Feb 26, 2024 · 1 comment
Open

Scrapper python script cannot find the snapshot #2

TeoSkondras opened this issue Feb 26, 2024 · 1 comment

Comments

@TeoSkondras
Copy link

I am using windows and can execute the first part, snapshot.js creates the jpg file and stores it in the same directory as the js script.
However when trying to run the python scrapper script I get the error:
FileNotFoundError: [WinError 2] The system cannot find the file specified

On snapshot.js, there is a path named: userDataDir . When running on Windows, chrome does not have a similar directory to the one shown, is this the problem? If yes what path should I place there?

@vdutts7
Copy link
Owner

vdutts7 commented Feb 27, 2024

Just updated README.md to include paths for Windows and Linux.

Basically, you can use either Chrome (or Chrome Canary, substitute throughout as needed) on any OS.

  • the executable path is the full pathname of your desktop Chrome app
  • the user data directory is the specific directory where Puppeteer stores user-specific data like cookies and local storage

Can you try the new paths and see if you still have issues?
Tip: Depending on what terminal you are running from, there may be escape characters messing things up, so try replacing / with \\

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

No branches or pull requests

2 participants