Commit 2ca2a1a2 authored by nanahira's avatar nanahira

add Cookie and csrf_token thing

parent 0c3144d7
......@@ -85,3 +85,5 @@ class Config:
Bearer_token: str = None
Guest_token: str = None
deleted: list = None
Cookie: str = ""
Csrf_token: str = ""
......@@ -120,6 +120,8 @@ async def RequestUrl(config, init):
_url, params, _serialQuery = url.SearchProfile(config, init)
elif config.TwitterSearch:
logme.debug(__name__ + ':RequestUrl:TwitterSearch')
_headers.append(('cookie', config.Cookie))
_headers.append(('x-csrf-token', config.Csrf_token))
_url, params, _serialQuery = await url.Search(config, init)
else:
if config.Following:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment