MCPcopy
hub / github.com/PleasePrompto/notebooklm-skill / __init__

Method __init__

scripts/browser_session.py:30–49  ·  view source on GitHub ↗

Initialize a new browser session Args: session_id: Unique identifier for this session context: Browser context (shared or dedicated) notebook_url: Target NotebookLM URL for this session

(self, session_id: str, context: BrowserContext, notebook_url: str)

Source from the content-addressed store, hash-verified

28 """
29
30 def __init__(self, session_id: str, context: BrowserContext, notebook_url: str):
31 """
32 Initialize a new browser session
33
34 Args:
35 session_id: Unique identifier for this session
36 context: Browser context (shared or dedicated)
37 notebook_url: Target NotebookLM URL for this session
38 """
39 self.id = session_id
40 self.created_at = time.time()
41 self.last_activity = time.time()
42 self.message_count = 0
43 self.notebook_url = notebook_url
44 self.context = context
45 self.page = None
46 self.stealth = StealthUtils()
47
48 # Initialize the session
49 self._initialize()
50
51 def _initialize(self):
52 """Initialize the browser session and navigate to NotebookLM"""

Callers

nothing calls this directly

Calls 2

_initializeMethod · 0.95
StealthUtilsClass · 0.90

Tested by

no test coverage detected