vosonlab / SocialMediaLab

46 stars 19 forks source link

How to construct an Twitter actor network based on TweeterID? #20

Open vmasias opened 8 years ago

vmasias commented 8 years ago

Dear Team,

I would like to create and export an actor network using TweeterID instead of the Username.

This information is very important to compare networks over time.

How can I solve this issue?

Sincerely your,

Víctor

timothyjgraham commented 8 years ago

Hi Victor,

Thanks for touching base. Do you wish to create a network of follower/friend relations, starting from a particular user ID?

Presently we have not implemented the ability to create these "ego" types of networks for Twitter. But it is high on the list of features.

Tim

rjackland commented 8 years ago

Another interpretation of Victor's request is that we add a vertex attribute to the actor graph, the Twitter id for the user.

I thought a quick fix might be a match/merge between the 'name' attribute in the actor graph (which is twitter handle) and a column in the data frame returned by Collect(), but it seems that Twitter user ids are not stored in the data frame (or at least not all of them).

Rob

vmasias commented 8 years ago

Thank you both!!!.

I mean, I would like to add a vertex attribute to the actor graph, the Twitter id for the user (not the screen name). But I dont know if the data frame store the TwitterId, or how to match/merge the name attribute with the twitterid. It is possible to add the Twitterid to the node ID?

Vic!

timothyjgraham commented 8 years ago

@vmasias Sorry for the delay in getting back to you on this. I have been busy but will look at it this weekend. I can't recall from memory if the dataframe uses name or ID. If it is not using ID, then this is a problem, and I will fix it in the development branch here on GitHub. Stay tuned.

Tim