MCPcopy Create free account
hub / github.com/fa0311/TwitterInternalAPIDocument / js_search_data

Class js_search_data

lib/js_parser/js_parser.py:57–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57class js_search_data:
58 def __init__(self):
59 self.children: list = []
60 self.parent: js_data = None
61 self.after = None
62 self.before = None
63 self.data = None
64
65 def __repr__(self):
66 return json.dumps(self.children)
67
68 def to_list(self):
69 output = []
70 for child in self.children:
71 if type(child) is js_data:
72 output.append(child.to_list())
73 else:
74 output.append(child)
75 return output
76
77
78def search_js(text: js_data, search: str) -> list[js_search_data]:

Callers 2

search_jsFunction · 0.85
search_js_regFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected