logo Netzschleuder network catalog, repository, and centrifuge

History of russian_troll_mentions

The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.

[entries] Add the date when each entry was added, and remove icon_hash by Tiago de Paula Peixoto beff7c9
The dates are those of the commits that first added the entries' files
(2020-08-11 for the entries of the initial commit); renamed entries keep
the date of their first name.

Changed: none
diff --git a/entries/russian_troll_mentions/__init__.py b/entries/russian_troll_mentions/__init__.py
index a2d58f2..f86c770 100644
--- a/entries/russian_troll_mentions/__init__.py
+++ b/entries/russian_troll_mentions/__init__.py
@@ -38,7 +38,7 @@ url = 'https://github.com/cmarcum/RussianTrollNetwork'
 citation = [('D. L. Linvill, P. L. Warren, "Troll Factories: Manufacturing Specialized Disinformation on Twitter." Political Communication 37(4), 447-467 (2020)', 'https://doi.org/10.1080/10584609.2020.1718257'),
             ('C. S. Marcum, "Russian Troll Twitter Mention Network." GitHub repository (2018)', 'https://github.com/cmarcum/RussianTrollNetwork'),
             ('O. Roeder, "Why We\'re Sharing 3 Million Russian Troll Tweets." FiveThirtyEight (2018)', 'https://fivethirtyeight.com/features/why-were-sharing-3-million-russian-troll-tweets/')]
-icon_hash = '5b7ecf0adfd5c2fc3b0978d4'
+date_added = '2026-10-25'
 upstream_license = None
 # cmarcum/RussianTrollNetwork repository at a fixed commit
 upstream_prefix = 'https://raw.githubusercontent.com/cmarcum/RussianTrollNetwork/e55719d7e9722252216833a8eadaeec7d34732b8'
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) by Tiago de Paula Peixoto bc3dbbd
The lists of properties at the end of the descriptions marked edge
properties with "Edge" but left node properties unmarked, or grouped
them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property
was often unclear. Every item now starts with (Node), (Edge) or (Graph),
followed by the property names, a colon and the explanation, one item
per property or group of properties; qualifications (kinds of nodes,
networks) follow the names in parentheses. Properties that were only
named got a short explanation, and a few items that named the wrong
kind of property were corrected.
diff --git a/entries/russian_troll_mentions/__init__.py b/entries/russian_troll_mentions/__init__.py
index cc73e98..a2d58f2 100644
--- a/entries/russian_troll_mentions/__init__.py
+++ b/entries/russian_troll_mentions/__init__.py
@@ -23,8 +23,16 @@ description = """Directed network of mentions among Twitter accounts linked to t
 
 The network has the following properties:
 
-- Nodes: `name`, the Twitter handle (lower case); `activity`, the number of tweets by the account in the data; `account_type`, the specific theme of the account, as coded by Linvill and Warren (e.g. "Right", "left", "Russian", "Hashtager", "Koch"); `account_category`, the general theme of the account, as coded by Linvill and Warren ("RightTroll", "LeftTroll", "NewsFeed", "HashtagGamer", "Fearmonger", "NonEnglish", "Commercial", "Unknown"); `region`, the list of region classifications of the account's tweets, as determined by Social Studio (an empty string means a tweet without region); `language`, the list of languages of the account's tweets; `max_following`, `min_following`, the maximum and minimum number of accounts followed by the account at the time of its tweets; `max_followers`, `min_followers`, the maximum and minimum number of followers of the account at the time of its tweets; `first_post`, `last_post`, the dates and times of the first and last tweets of the account (as "YYYY-MM-DD HH:MM:SS").
-- Edges: `mentions`, the number of mentions of the target in tweets by the source (repeated mentions in the same tweet are counted separately)."""
+- (Node) `name`: the Twitter handle (lower case).
+- (Node) `activity`: the number of tweets by the account in the data.
+- (Node) `account_type`: the specific theme of the account, as coded by Linvill and Warren (e.g. "Right", "left", "Russian", "Hashtager", "Koch").
+- (Node) `account_category`: the general theme of the account, as coded by Linvill and Warren ("RightTroll", "LeftTroll", "NewsFeed", "HashtagGamer", "Fearmonger", "NonEnglish", "Commercial", "Unknown").
+- (Node) `region`: the list of region classifications of the account's tweets, as determined by Social Studio (an empty string means a tweet without region).
+- (Node) `language`: the list of languages of the account's tweets.
+- (Node) `max_following`, `min_following`: the maximum and minimum number of accounts followed by the account at the time of its tweets.
+- (Node) `max_followers`, `min_followers`: the maximum and minimum number of followers of the account at the time of its tweets.
+- (Node) `first_post`, `last_post`: the dates and times of the first and last tweets of the account (as "YYYY-MM-DD HH:MM:SS").
+- (Edge) `mentions`: the number of mentions of the target in tweets by the source (repeated mentions in the same tweet are counted separately)."""
 tags = ['Social', 'Online', 'Weighted', 'Metadata']
 url = 'https://github.com/cmarcum/RussianTrollNetwork'
 citation = [('D. L. Linvill, P. L. Warren, "Troll Factories: Manufacturing Specialized Disinformation on Twitter." Political Communication 37(4), 447-467 (2020)', 'https://doi.org/10.1080/10584609.2020.1718257'),
[entries] Remove unneeded code from the entries by Tiago de Paula Peixoto 2c69f19
Unneeded "global files" statements, unused imports and variables,
f-strings without placeholders, duplicate keys in foodweb_little_rock
(keeping the order and the values used), and the second definition of
get_lines() in twitter_higgs. Nothing changes in the networks or
descriptions.

Changed: none
diff --git a/entries/russian_troll_mentions/__init__.py b/entries/russian_troll_mentions/__init__.py
index d2e3f4c..cc73e98 100644
--- a/entries/russian_troll_mentions/__init__.py
+++ b/entries/russian_troll_mentions/__init__.py
@@ -44,7 +44,6 @@ def fetch_upstream(force=False):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fnames, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] New entry: russian_troll_mentions by Tiago de Paula Peixoto 9672245
diff --git a/entries/russian_troll_mentions/__init__.py b/entries/russian_troll_mentions/__init__.py
new file mode 100644
index 0000000..d2e3f4c
--- /dev/null
+++ b/entries/russian_troll_mentions/__init__.py
@@ -0,0 +1,73 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "Russian troll Twitter mentions (2012-2018)"
+description = """Directed network of mentions among Twitter accounts linked to the Internet Research Agency (IRA), a Russian "troll factory". The tweets were collected by Darren Linvill and Patrick Warren (Clemson University), who gathered, using the Social Studio tool, nearly 3 million tweets sent between February 2012 and May 2018 (mostly from 2015 to 2017) from the IRA-linked handles that Twitter identified and provided to the US Congress in November 2017 and June 2018, and coded the accounts by their theme. The tweets were published by FiveThirtyEight. The network was constructed by Christopher S. Marcum from the version of the tweets published on August 1, 2018: tweet authors and contents were lower-cased, the handles mentioned with "@" were extracted from the tweet texts (which include retweets), and only mentions of handles that are themselves authors in the data were kept. Each node is a troll account (only accounts that mention or are mentioned by another troll account are included), and a directed edge from account i to account j indicates that i mentioned j in at least one tweet. Self-mentions were discarded when the network was built, so that 33 accounts (presumably those that mentioned only themselves) are isolated nodes.
+
+The network has the following properties:
+
+- Nodes: `name`, the Twitter handle (lower case); `activity`, the number of tweets by the account in the data; `account_type`, the specific theme of the account, as coded by Linvill and Warren (e.g. "Right", "left", "Russian", "Hashtager", "Koch"); `account_category`, the general theme of the account, as coded by Linvill and Warren ("RightTroll", "LeftTroll", "NewsFeed", "HashtagGamer", "Fearmonger", "NonEnglish", "Commercial", "Unknown"); `region`, the list of region classifications of the account's tweets, as determined by Social Studio (an empty string means a tweet without region); `language`, the list of languages of the account's tweets; `max_following`, `min_following`, the maximum and minimum number of accounts followed by the account at the time of its tweets; `max_followers`, `min_followers`, the maximum and minimum number of followers of the account at the time of its tweets; `first_post`, `last_post`, the dates and times of the first and last tweets of the account (as "YYYY-MM-DD HH:MM:SS").
+- Edges: `mentions`, the number of mentions of the target in tweets by the source (repeated mentions in the same tweet are counted separately)."""
+tags = ['Social', 'Online', 'Weighted', 'Metadata']
+url = 'https://github.com/cmarcum/RussianTrollNetwork'
+citation = [('D. L. Linvill, P. L. Warren, "Troll Factories: Manufacturing Specialized Disinformation on Twitter." Political Communication 37(4), 447-467 (2020)', 'https://doi.org/10.1080/10584609.2020.1718257'),
+            ('C. S. Marcum, "Russian Troll Twitter Mention Network." GitHub repository (2018)', 'https://github.com/cmarcum/RussianTrollNetwork'),
+            ('O. Roeder, "Why We\'re Sharing 3 Million Russian Troll Tweets." FiveThirtyEight (2018)', 'https://fivethirtyeight.com/features/why-were-sharing-3-million-russian-troll-tweets/')]
+icon_hash = '5b7ecf0adfd5c2fc3b0978d4'
+upstream_license = None
+# cmarcum/RussianTrollNetwork repository at a fixed commit
+upstream_prefix = 'https://raw.githubusercontent.com/cmarcum/RussianTrollNetwork/e55719d7e9722252216833a8eadaeec7d34732b8'
+files = [('trolls.Rdata', None, None)]
+
+def fetch_upstream(force=False):
+    return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+                                force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+    global files
+    name = __name__.split(".")[-1]
+    for fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        with open_upstream_file(name, fnames, "rb") as f:
+            r = network_from_rdata(read_rdata(f)["trolls"])
+        g = Graph(directed=bool(r["gal"]["directed"][0]))
+        g.add_vertex(int(r["gal"]["n"][0]))
+        va = r["vattrs"]
+        def vals(k, f=lambda x: x[0]):
+            return [f(a[k]) for a in va]
+        g.vp.name = g.new_vp("string", vals=vals("vertex.names"))
+        g.vp.activity = g.new_vp("int", vals=vals("activity", lambda x: int(x[0])))
+        g.vp.account_type = g.new_vp("string", vals=vals("accounttype"))
+        g.vp.account_category = g.new_vp("string", vals=vals("accountcategory"))
+        g.vp.region = g.new_vp("vector<string>", vals=vals("region", list))
+        g.vp.language = g.new_vp("vector<string>", vals=vals("language", list))
+        for k in ["following", "followers"]:
+            for m in ["max", "min"]:
+                g.vp[f"{m}_{k}"] = g.new_vp("int", vals=vals(f"{m}{k}", lambda x: int(x[0])))
+        g.vp.first_post = g.new_vp("string", vals=vals("minpostdate"))
+        g.vp.last_post = g.new_vp("string", vals=vals("maxpostdate"))
+        g.ep.mentions = g.new_ep("int")
+        g.add_edge_list([(s, t, int(a["tweets"][0])) for s, t, a in r["edges"]],
+                        eprops=[g.ep.mentions])
+        yield alt, g