Unable to pass cookies between selenium and requests in order to do the scraping using the latter
问题 I've written a script in python in combination with selenium to log into a site and then transfer cookies from driver to requests so that I can go ahead using requests to do further activities. I used item = soup.select_one("div[class^='gravatar-wrapper-']").get("title") this line to check whether the script can fetch my username when everything is done. This is my try so far: import requests from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.keys