gpt4V-scraper icon indicating copy to clipboard operation
gpt4V-scraper copied to clipboard

Scrapper python script cannot find the snapshot

Open TeoSkondras opened this issue 11 months ago • 1 comments

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?

TeoSkondras avatar Feb 26 '24 14:02 TeoSkondras

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 \\

vdutts7 avatar Feb 27 '24 13:02 vdutts7