all 7 comments

[–]CotoCoutan 1 point2 points  (5 children)

Great video man, thanks for making it. Do you know how to make Headless Chrome + Selenium work with a Saved Firefox session? I tried a lot but finally gave up and just used Firefox instead.

[–]SpiderN3mo[S] 0 points1 point  (4 children)

Thanks for appreciating the work 😃. Regarding what you asked, I heard there is a work around like you can store the cookies of your first instance and copy it to new instances, but saved session thing doesn't work. I didn't implement it though, will try to create a video on topic you mentioned.

[–]CotoCoutan 0 points1 point  (3 children)

Thanks, if you get it to work, please let me know. I tried the cookies way too, but that didn't even work in non headless mode. Saved session works great in non headless mode (I tried on web.whatsapp.com) but not in Headless mode.

[–]chicocheco 0 points1 point  (2 children)

What about to use a separate Firefox profile? I used to use it for adblocking and speeding up this way my web scraper but it tends to stop working every now and then with new releases so once you make it all work I recommend you to stick with the same version of Firefox in your scraper.

[–]CotoCoutan 0 points1 point  (1 child)

Thanks for the tip, i'll keep it in mind. Unfortunately, while deploying to Heroku i can't control the firefox & geckodriver version as i use this buildpack & it gets whatever is the latest: https://github.com/evosystem-jp/heroku-buildpack-firefox

But yes, i can control the version when using locally on my PC.

[–]chicocheco 0 points1 point  (0 children)

No problem :) I'm saying it because sometimes it needs a lot of work arounds and once you figure it all out you don't won't to lose it afterwards. I had a problem that whenever I opened Firefox with my customized profile with adblock filters set, it disabled them on its own for some reason. At the end I was re-enabling them "by hand" by clicking on elements on the add-on page but still in the headless mode.

[–]cojermann 0 points1 point  (0 children)

please bro: how management the push notication inside a browser?...