How to use selenium to open multiple instances Firefox simultaneously without clearing cache and cookie
问题 I have a code which scrape friend list from Facebook UID. It worked but it takes a long time to scrape a whole list. So, I want to speed it up by using multiprocessing and Selenium Grid. The following is the approach I use: Login Facebook with account Open 5 instances Firefox with same cache and cookie ( so I don't need to login again) Scrape friend list from 5 different UID simultaneously. 1 instance/1 UID This is my code but it doesn't work import multiprocessing from selenium.common