facebook-scrape-group icon indicating copy to clipboard operation
facebook-scrape-group copied to clipboard

Chrome opens with a new default account

Open ZiggerZZ opened this issue 4 years ago • 6 comments

Hi,

Great project! I think it might be used by many people, hope you will continue working on it!

First when I ran node index.js <groupid> | tee permalinks.csv I got Error: Cannot find module 'chrome-launcher', so I installed chrome-launcher with npm install chrome-launcher. Now what happens is that Chrome opens with a new default account, so I'm not logged in in FB anymore, so I can't scrape. Do you know how to fix it?

P.S. While Graph API is a useful thing, you can only use it if you have the group token, which is often not the case...

ZiggerZZ avatar Mar 21 '20 16:03 ZiggerZZ

Hi,

Been a while since I looked at this and I don't use this repo every week :(

/lib/chrome.js has the code for launching chrome with a specific profile and it's based on these:

  • https://github.com/GoogleChrome/chrome-launcher/issues/172
  • https://gist.github.com/VikramTiwari/9fe97f990d17ada231dee35eea128480

I wonder if something changed in a recent Chrome release. Which version of Chrome do you have?

Also please try npm install at the root of this repo to ensure all dependencies are installed.

csabapalfi avatar Mar 31 '20 07:03 csabapalfi

Thanks!

I have Chrome 80.

Finally, it works. Sometimes. Sometimes it doesn't :) Haven't yet figured out how to make it work consistently.

If I have any updates, I'll post here.

ZiggerZZ avatar Apr 01 '20 11:04 ZiggerZZ

Thanks a lot!

I'll also try to give it a go shortly. It's been a while since I ran this and Chrome keeps changing...

csabapalfi avatar Apr 01 '20 12:04 csabapalfi

Does it work on ubuntu linux setup ?

SohanChotia avatar Jun 02 '20 06:06 SohanChotia

@SohanChotia Unfortunately, no. If you check chromePath and userDataDir in lib/chrome.js those are MacOS specific. I think if you edit those it might work on Linux as well but other changes might also be required.

csabapalfi avatar Jun 02 '20 09:06 csabapalfi

I just tried running this locally and I can confirm that running with the default Chrome profile no longer works. There are some new issues linked to https://github.com/GoogleChrome/chrome-launcher/issues/172 in case anyone wants to explore those.

csabapalfi avatar Jun 09 '20 07:06 csabapalfi