Twint: Cannot get user info and followers after editing the get.py

Created on 3 Jun 2020  ·  5Comments  ·  Source: twintproject/twint

I have modified both lines 163 and 182 of the get.py file but I still have these issues:

  • When I run the following line in the terminal: twint -u LindaKreitzman --followers I get the following error: ValueError: Cannot find twitter account with name = LindaKreitzman whereas the account exits.

    • When I run this in the notebook: import twint

c = twint.Config()
c.Username = "LindaKreitzman"
c.User_full = True

twint.run.Followers(c)

I got this error: RuntimeError: This event loop is already running
CRITICAL:root:twint.get:User:'NoneType' object is not subscriptable

(see picture attached)
Capture d’écran 2020-06-02 à 21 46 42

Thank you for your help. I have looked at the previous issues but can't fix it.

Best regards,
Alex

Most helpful comment

For the event loop problem, try using the following
import nest_asyncio
nest_asyncio.apply()

I am also getting the 2nd part of the error for all users when fetching followers. I have looked a lot but can't find a fix. I have tried

  1. Updating library
  2. Using linux instead of windows
  3. Using a VPN (though this doesn't seem to be a network issue)

All 5 comments

For the event loop problem, try using the following
import nest_asyncio
nest_asyncio.apply()

I am also getting the 2nd part of the error for all users when fetching followers. I have looked a lot but can't find a fix. I have tried

  1. Updating library
  2. Using linux instead of windows
  3. Using a VPN (though this doesn't seem to be a network issue)

Run on cmd its working fine

On Wed, 3 Jun 2020, 9:28 pm chhavijain2212, notifications@github.com
wrote:

For the event loop problem, try using the following
import nest_asyncio nest_asyncio.apply()

I am also getting the 2nd part of the error for all users when fetching
followers. I have looked a lot but can't find a fix. I have tried

  1. Updating library
  2. Using linux instead of windows
  3. Using a VPN (though this doesn't seem to be a network issue)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/twintproject/twint/issues/779#issuecomment-638290170,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APPE2EESSHUEDLBYJ7SFJATRUZXLBANCNFSM4NRJ626A
.

Thanks for the comments. I now run this:
import twint
import nest_asyncio

nest_asyncio.apply()
c = twint.Config()
c.Username = 'LindaKreitzman'
c.User_full = True

twint.run.Followers(c)

But I still get the error : Cannot find twitter account with name = LindaKreitzman
This is the associated Twitter profile: https://twitter.com/LindaKreitzman

since a few days, it's become impossible to download twitter webpages with wget or curl.
Even Httrack doesn't work with Twittter.
I tried to change the --useragent but that doesn't work.
I think it's the same problem with Twint.

I'd be glad to read someone having a solution to solve the problem.

Twitter's Legacy theme has been deprecated recently, impacting scraping. Please see #756 for more info.

Was this page helpful?
0 / 5 - 0 ratings