Luca Hammer
Aug 26, 2017 · 1 min read

You can use the the query-option for that. I hope to find time to write some docs for the script.

Quick and dirty:
- Put the screennames you are interested in in a text-file. Including @. I like to put one per line, but it doesn’t matter. “@luca @lorenzo @obama”.
- Save the the file as manyaccounts.twt. You can use any name instead of manyaccounts, only the extension is important. And you need to remember the name for the next steps.
- Put the file in the twecoll directory.
- Use the command ‘python twecoll init -q manyaccounts’. Twecoll will search the file for Twitter-handles.
- Next get their connections with ‘python twecoll fetch manyaccounts’.
- Finally create the network file with ‘python twecoll edgelist manyaccounts’.

Instead of creating the .twt-file per hand, you can use the ‘tweets’ command to collect tweets and extract accounts:
- python twecoll tweets -q ‘interestingstring’
- python twecoll init -q ‘interestingstring’
- python twecoll fetch ‘interestingstring’
- python twecoll edgelist ‘interestingstring’

You can chain them together with &&. This will run the next command once the one before is finished.

python twecoll tweets -q ‘interestingstring’ && python twecoll init -q ‘interestingstring’ && python twecoll fetch ‘interestingstring’ && python twecoll edgelist ‘interestingstring’

)

    Luca Hammer

    Written by

    Grew up in the Alps. Father. Working with data and words. Please 👏 and share the article if you enjoyed it.