facebook-scrape-group
facebook-scrape-group copied to clipboard
Chrome opens with a new default account
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...
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.
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.
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...
Does it work on ubuntu linux setup ?
@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.
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.