DaylightingSociety / SocMap

Social Mapping Framework for Twitter
https://socmap.daylightingsociety.org/
BSD 3-Clause "New" or "Revised" License
18 stars 4 forks source link

Save the user lists from layer0 to disk #3

Closed milo-trujillo closed 6 years ago

milo-trujillo commented 6 years ago

This depends on #1 and #2. Once we have the list of everyone mentioned or retweeted by our seed nodes we need to create the following files:

  1. A dictionary of all usernames or twitter IDs to investigate from layer0's mentions

  2. A dictionary of all usernames or twitter IDs to investigate from layer0's tweets

These should be pickled dictionaries, of the form (layer0username -> layer1username). They should be put in the workdir folder (default is "./work") and named layer0mentionedUsers.dict and layer0retweetedUsers.dict, respectively.

milo-trujillo commented 6 years ago

Implemented and pushed. I chose to use JSON instead of pickling, since we're already saving tweets as JSON. Filenames changed to "foo.json" accordingly.