Selenium的cookies转为requests的cookie

cookie = '; '.join(item for item in [item["name"] + "=" + item["value"] for item in self.driver.get_cookies()])