the-convocation / twitter-scraper

A port of n0madic/twitter-scraper to Node.js.
https://the-convocation.github.io/twitter-scraper/
MIT License
211 stars 43 forks source link

getProfile returns incorrect followingCount #66

Closed ThijnK closed 1 year ago

ThijnK commented 1 year ago

In particular, it seems that the followingCount property of the Profile object is copying the likesCount property.

For example, this is (part of) one of the profiles I fetched:

{
  ...
  biography: '',
  followersCount: 3,
  followingCount: 82,
  friendsCount: 5,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 82,
  listedCount: 0,
  ....
}

I checked and the followersCount here is incorrect, but equal to the likesCount. Tested with some other profiles and the patterns repeats itself

I'm on the most recent version

ThijnK commented 1 year ago

It seems that Twitter itself actually just uses the friends_count as the following count, and that is already being returned by the getProfile. So as far as I know, you can just use the friendsCount entry as the nr of following. Still, may as well remove the followingCount property, or give it the same value as friendsCount.

karashiiro commented 1 year ago

Fixed in #67