eleurent / twitter-graph

Fetch and visualize the graph of your Twitter friends and followers.
392 stars 46 forks source link

Use lists instead of following? #10

Open erickhun opened 3 years ago

erickhun commented 3 years ago

Hi,

I have most of the people I "follow" on private lists. would that be possible to use that instead of following?

Thank you!

eleurent commented 3 years ago

Hi @erickhun

Yes, that could easily be done by replacing the calls to api.GetFriends() and api.GetFollowers() in fetch_users by a call to api.GetLists followed by a call to api.GetListMembers

erickhun commented 3 years ago

@eleurent thanks! Would you consider to merge if I do a PR on that?

Looks like using the --graph-nodes param would be appropriate?

eleurent commented 3 years ago

@eleurent thanks! Would you consider to merge if I do a PR on that?

Of course!

Looks like using the --graph-nodes param would be appropriate?

You're right. Actually, the current code is a bit messy since the source of nodes is set at several places:

But I think this could be simplified to a single (friends | followers | lists | tweets) parameter, at the cost of a little bit of efficiency.

nadesai commented 2 years ago

FYI: #18 may be relevant as an example of adding a new mode.