Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

(session.sleep, session.wakeup) or (session.dump, session.load)#752

Cirn09 started this conversation inIdeas
Discussion options

Sometimes I need to use the same session for a long time to complete a task, but currently the browser process keeps running after the session is created and before it is destroyed. This may not be friendly for devices with small memory.

Perhaps asession.sleep command could be added to hibernate the target session, andsession.wakeup command to bring the target session back up.
Or more simplysession.dump, which prints all the state of the current session; andsession.load, which resumes from the previous state.

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

This will make the FlareSolverr code more complex and I think it will cause even more complex issues in the future. Closing the Chrome browser properly, keeping all the directories with the session data, and restoring Chrome again is more difficult than it seems. Communication with Chrome is done through the Selenium API which has many limitations.

Use case 1:

  • Few queries
  • Do not use sessions

Use case 2:

  • Low resources, many queries in a short period of time and then idle for a while
  • Use sessions but close them after you finish the requests.

Use case 3:

  • Low resources, many queries
  • Use sessions
You must be logged in to vote
1 reply
@Cirn09
Comment options

Perhaps a simplesession.dump andsession.load that only exports all cookies could be implemented first?
Currently therequest.get's response seems to contain only cookies used in this request.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@Cirn09@ngosang

[8]ページ先頭

©2009-2025 Movatter.jp