Перейти к содержимому

Заказ на фриланс · Скрипты, боты и mini apps › Парсеры

Selenium Cookie Persistence Fix

  • Бюджет: 2 157 ₽ – 26 957 ₽
  • Раздел: Скрипты, боты и mini apps › Парсеры
  • Опубликован: (МСК)

I have a small Python script that logs into with Selenium and ChromeDriver. The login itself succeeds, but the cookies never make it to disk, so every new run forces a fresh login. In other words, cookies are not being saved and I need that fixed.

Your task is to diagnose why driver.get_cookies() isn’t capturing the session cookies and then build a clean solution that:

• stores the full, authenticated cookie set at the end of the first run in a PHP-friendly format (JSON is fine)
• reloads those cookies on subsequent runs so the script lands on an already-logged-in page without manual input
• can also be picked up by a simple PHP cURL call to confirm the session really persists across languages

I’ll provide the current code and test credentials. Please work with Selenium 4 and the latest stable ChromeDriver, and keep the fix self-contained so I can drop it into an existing pipeline. A quick turnaround is appreciated—let me know how soon you can deliver and any relevant cookie-handling projects you’ve completed.

Похожие заказы

Заказы для программистов на фрилансе · Все свежие заказы