Closed Cheryl520 closed 4 years ago
Getting the same issue this morning :(
twitter's page which about use "user_id" to get user info is change ,maybe twint need to change the way, 'soup.find("a", "fn url alternate-context")["href"].replace("/", "")' need to fix,it isn't worked.
I have solved this problem by editing two places in the 'get.py' :
change line 163 to :
r = await Request(url, headers={"X-Requested-With": "XMLHttpRequest"})
(refer to #769 )
change line 182 to :
response = await Request(url, headers={"X-Requested-With": "XMLHttpRequest"}, connector=_connector)
(refer to #772 )
thanks , your answer is rigtht
This is solved the issue; however, getting the same error when using with other options like "twint -u account_name --profile-full"
Any thought please !
Patch merged, please update with pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
It was working until yesterday, but something else has been broken.
Someone having an idea ?
@mikaelyh solution in #863
I'm getting user information these days but i noticed it suddenly gave error messgages of "CRITICAL:root:twint.get:User:'NoneType' object is not subscriptable" this morning. And i noticed that there's change on the twitter end and there's change in the 'get.py'.
I followed the modification by deleting:
r = await Request(url)
and adding:r = await Request(url, headers={"X-Requested-With": "XMLHttpRequest"})
by editing the 'get.py' manually.But it still doesn't work since "CRITICAL:root:twint.get:User:'NoneType' object is not subscriptable" still comes out.