Skip to content

Create page_state.py#35

Open
yearski wants to merge 1 commit intocclgroupltd:masterfrom
yearski:page_state
Open

Create page_state.py#35
yearski wants to merge 1 commit intocclgroupltd:masterfrom
yearski:page_state

Conversation

@yearski
Copy link

@yearski yearski commented Sep 11, 2025

PageState object can parse and structure data from ccl_chromium_snss2.NavigationEntry.page_state_raw

PageState object can parse and structure data from ccl_chromium_snss2.NavigationEntry.page_state_raw
@yearski
Copy link
Author

yearski commented Sep 11, 2025

This code is reverse-engineered and "hackey". It was not properly designed based on knowledge of how the raw data was encoded but rather by experimentally finding something that works. Assumptions were made which may not be valid in all cases, but worked for me. I hope it's useful to others as is, or serves as a starting point for better work.

Successes:

  • URLs
  • UUIDs (although I don't know what these are used for)
  • Blink form
  • post data (form, url-encoded, etc)
  • UUIDs (although I don't know what these are used for)

Unfinished:

  • It ignores nested or sequential/appended Table of Contents (TOC) and associated data.
  • I found some fields but I don't know what they are ("weird ASCII", "bonus_field")

I added a file to tools_and_utilities indicating that this is more of a user-contributed code sample, than robust source code.

@a-teammate
Copy link

okay, i didnt look too much, so this might be totally unrelated.
I saw the following gist and thought it might be of relevance. Mostly because the code in ccl_chromium_snss2.py looks similar to what they have there.
Parse urls and titles from chrome browser sessions which they say is used in https://github.com/manucabral/pybrinf

since i didnt see this related project mentioned, i drop it here, might be totally irrelevant, sorry in that case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments