MCPcopy Create free account
hub / github.com/cxapython/catvm / get_gt

Function get_gt

twitter/twitter_article.py:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def get_gt():
38 headers = {
39 'authorization': 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA',
40 }
41 response = requests.post('https://api.twitter.com/1.1/guest/activate.json', headers=headers)
42 data = json.loads(response.text)
43 gt = data.get('guest_token')
44 return gt
45
46
47def get_user_id(name, gt):

Callers 1

crawlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected