Skip to content

SeleniumSessionManager is a Python tool to export any Selenium session and get it in another computer.

License

Notifications You must be signed in to change notification settings

HugoCls/Import-Export-SeleniumSession

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export/Import Selenium Session to another computer

This repository contains Python scripts for exporting any Selenium session and import this session back, on another Selenium WebDriver instance.

Usage

Installation

  1. Clone the repository:
git clone https://github.com/HugoCls/Import-Export-SeleniumSession
  1. Install dependencies:
pip install -r requirements.txt

Export a Session

  1. You can either import the export_session() function into your code or modify export.py file.
from session_exporter import export_session

# ... [Your code] ...

export_session(driver)

# ... [Your code] ...
  1. Run export.py or [your_script].py.

  2. The session data, including cookies and storage information, will be exported to the session.pkl file.

Import a Session

  1. Change https://yourwebsite.com and run import.py.

  2. The script will open a Chrome browser, navigate to your specified website, and import session data from the session.pkl file.

License

This repository is under MIT License, please check it out before using.

About

SeleniumSessionManager is a Python tool to export any Selenium session and get it in another computer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages