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

Function get_feature_switches

lib/graphql.py:148–154  ·  view source on GitHub ↗
(parsed_list: list)

Source from the content-addressed store, hash-verified

146
147
148def get_feature_switches(parsed_list: list) -> list:
149 reg_exports = "e\.exports={var}$".format(var="([a-zA-Z]{1,2})")
150 exports_list = search_js_reg(parsed_list, reg_exports)
151 for exports in exports_list:
152 feature_switches = get_freeze_object(exports.parent, disable_tqdm=True)
153 if len(feature_switches) > 0:
154 return feature_switches[0]
155
156
157def to_api(graphql_output: list, kwargs: dict) -> dict:

Callers

nothing calls this directly

Calls 2

search_js_regFunction · 0.85
get_freeze_objectFunction · 0.85

Tested by

no test coverage detected