Open szsyzx opened 2 weeks ago
try this pip uninstall twikit
when it has uninstalled your existing package, install this fork of the repo
pip install git+https://github.com/mdmrcglu/twikit.git
as least it worked for me just now, but first make sure you uninstall the initial package
Yes, a fork can execute but the original repository cannot, which is very strange.
I was getting the same error
twikit.errors.BadRequest: status: 400, message:"{"errors":[{"code":366, "message": "flow name LoginFlow is currently notaccessible"}]}"
so I tried the method in this thread.
pip uninstall twikit
pip install git+https://github.com/mdmrcglu/twikit.git
# I use Twikit in Lambda, so I tried it locally using python-lambda-local.(from Japan)
python-lambda-local -f lambda_handler src/lambda_function.py event.json
but I got a DenyLoginSubtask
error and login fails.
twikit/client/client.py#L391
Here is part of my login related code
client = Client(language='ja')
await client.login(
auth_info_1=auth_info_1,
auth_info_2=auth_info_2,
password=password
)
If anyone knows the cause, I would appreciate it if you could share your insights.
@yelnats20 Thank you for your Immediate response!
try this client = Client('en-US') instead of client = Client(language='ja')
I tried your suggestion, but I encountered the same error.
Additionally, I also tried:
・Adding an email address to the auth_info2
property
・Using information from other Twitter accounts
However, these attempts resulted in the same error.
try this pip uninstall twikit
when it has uninstalled your existing package, install this fork of the repo
pip install git+https://github.com/mdmrcglu/twikit.git
as least it worked for me just now, but first make sure you uninstall the initial package
Tried this now I get this error though:
Traceback (most recent call last):
File "/Users/brandonslockey/Documents/GitHub/2024_10_30 X_Scraper_BSL/main.py", line 82, in
try this pip uninstall twikit when it has uninstalled your existing package, install this fork of the repo pip install git+https://github.com/mdmrcglu/twikit.git as least it worked for me just now, but first make sure you uninstall the initial package
Tried this now I get this error though:
Traceback (most recent call last): File "/Users/brandonslockey/Documents/GitHub/2024_10_30 X_Scraper_BSL/main.py", line 82, in asyncio.run(main()) File "/Users/brandonslockey/opt/anaconda3/envs/twikit-env/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Users/brandonslockey/opt/anaconda3/envs/twikit-env/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/Users/brandonslockey/Documents/GitHub/2024_10_30 X_Scraper_BSL/main.py", line 42, in main await client.login(auth_info_1=username, auth_info_2=email, password=password) File "/Users/brandonslockey/opt/anaconda3/envs/twikit-env/lib/python3.10/site-packages/twikit/client/client.py", line 391, in login if flow.task_id == 'DenyLoginSubtask': File "/Users/brandonslockey/opt/anaconda3/envs/twikit-env/lib/python3.10/site-packages/twikit/utils.py", line 103, in task_id return self.response['subtasks'][0]['subtask_id'] IndexError: list index out of range
SAME HERE ! If you got any idea about how make it work.. thanks buddy !
twikit.errors.BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"
How can we completely solve it
I have seen many issues, one answer here and one answer there, but they still haven't solved the problem