Congressional Tweets on China: A Guide to Using the Data Portal
Written by Young Yang and Rachel Yu, University of California San Diego
In April 2019, the China Data Lab started the “Congress Tweets” project. In March 2022, we issued a four-part series of blogs exploring how Congress tweeted about China over a two-year period in 2019 and 2020. Using Twitter’s API to gather daily tweets, our new Congressional Tweets on China Portal (https://chinadatalab.ucsd.edu/tweets/) allows users to visualize and explore real-time tweets about China authored by members of Congress (MOC).
This portal showcases information about who tweets about China, when they tweet, and what topics they tend to cover.
Data Source
We use Twitter’s API to scrape daily tweets from current members of Congress as well as historical tweets published by MOCs during their tenure in office. The metadata and Twitter handle for each member are taken from an open source github repository. Our portal specifically focuses on the tweets that mention the words “China” or “Chinese”. Our dashboard is updated every day as new congressional tweets about China are collected.
How to Use This Live Portal
- The panel on the left hand side of the screen allows users to toggle the view of China tweets according to the Congress, session, chamber, state or territory, and member’s party identification.
- Placards at the top of the dashboard allow users to view aggregate data about the number of China tweets and number of legislators tweeting about China based on what is selected in the left hand panel.
- Graphics below these placards display information about the geographic spread, partisan differences, and topic variation in China tweets.
- The right hand side of the dashboard also features a display of Congressional tweets about China.1
- At the bottom of the dashboard, users can view and search for legislator-level information.
Topic Model
We train a topic model to predict the topic prevalence in each China tweet. This helps us to better understand the general themes and specific subjects members of Congress refer to when tweeting about China. Our initial model was trained on all congressional tweets about China from May 8, 2009 to February 8, 2023, with a total of 27,158 tweets. It yielded 89 detailed subtopics which were then hand-labeled based on the words and tweets most strongly associated with the subtopic. Upon further discussion, we consolidated subtopics with similar themes into a single subtopic.2 This resulted in 72 unique subtopics. Each subtopic was then manually coded into one of 9 broader topics. Upon labeling each topic, we assessed the validity of the model on a new dataset of congressional tweets about China from February 19, 2023 to February 23, 2023.
For more details about the specific topics detected, see the section below titled Topic Details.
Interactive Features
- Users can use the controls on the left to subset the tweets into posts by the 116th (2019-2021), 117th (2021-2023), or 118th (2023-Present) Congresses. This will be updated with the start of every new Congress.
- Users can also subset the data to the first, second, or both sessions of a particular congress.3
- Users can subset the viewable tweets by the members of Congress according to the chamber (House or Senate), state, and party identification (Democrat or Republican).
- The map shows the distribution of China-related tweets by state (for the Senate) and by congressional district (for the House).
- The boxplot on the right shows the ‘outlier’ politicians who sent the most tweets about China. Each dot represents a top tweeting politician and reveals their tweet count on China. You can click the dot to identify where the legislator’s constituency is on the map.
Preliminary Findings
As China and the U.S.-China relations become fraught, members of Congress have been active in communicating about China-related issues on Twitter. Early this year, the U.S. House of Representatives established the Select Committee on the Chinese Communist Party, formed by a bipartisan group of legislators,4 signaling increased congressional attention on China. It remains important to understand the opinions and positions of U.S. Congressional members in order to appreciate the overall U.S. attitudes and policy toward China.
Our real-time data confirms two key findings from the 2019 and 2020 data.
① Republicans remain far more active than Democrats in tweeting about China. In the 117th Congress, the median Republican tweeted 8 times more than the median Democrat about China (See Figure 2). This trend continues into the current Congress.
② Within congressional tweets about China, “instrumental tweets” are becoming more prevalent over time. Instrumental tweets refer to tweets that do not target China as the focus of discussion but use China as a way to attack political opponents, signal legislative competence, or explain domestic crises. Our data shows that members of Congress use instrumental themes more and more when talking about China on Twitter.
In the second session of the 116th Congress, for example, instrumental tweets accounted for 12.53% of all China tweets. In the 117th Congress, this number rose to 17.09% in the first session and to 21.86% in the second session. In the current Congress, instrumental tweets account for 22.64% of the China tweets thus far. All this is pointing to an increasing effort by Congressional members to use China to leverage gains in domestic politics.
Figure 3 displays the top 25 subtopics captured in the China tweets for the 118th Congress thus far. The teal boxes illustrate different themes in the instrumental tweets.
We now know Joe Biden was involved in his son’s business schemes. He even had an office!
— Rep. James Comer (@RepJamesComer) September 23, 2022
The Biden family tried to sell U.S. natural gas to China. Currently, Americans are struggling to even afford gas.
The Biden family sold access. Americans paid the price. @SchmittNYC pic.twitter.com/8elw6UazlT
Figure 4 shows an example of a tweet that was identified as highly instrumental in reference to China as it is actually about the “Hunter Biden” subtopic.
Topic Details
Authors
Young Yang, Research Data Analyst, China Data Lab at the 21st Century China Center, UC San Diego School of Global Policy and Strategy
Rachel Yu, Ph.D. student in political science and research assistant at China Data Lab, UC San Diego School of Global Policy and Strategy. Her research interests include diplomacy, U.S. foreign policy, foreign lobbying, and U.S.- China relations.
Read More
Part I: Who In The U.S. Congress Tweets About China?
Congress Tweets Part I.
We ask the question: does politicians’ tweeting stop at the water’s edge? How much do U.S. politicians tweet about foreign policy, and how much do they concern themselves with China, America’s preeminent strategic competitor? How polarized are China-related tweets, or do Democrats and Republicans have similar patterns of tweeting about China?
Continue Reading Part I: Who In The U.S. Congress Tweets About China?
Part II: What Do Members Of Congress Tweet About China?
How do MCs discuss China in the public sphere? We find that, while issues of human rights and security dominate over discussions of trade, Republicans and Democrats tend to highlight distinct issues and cite vastly different news sources when tweeting about China.
Continue Reading Part II: What Do Members Of Congress Tweet About China?
Part III: How does Congress Feel about China?
Starting here, we’ll be diving into sentiment. Overall, we find interesting bipartisan similarity in this measure since around the start of the trade war in 2018, with negativity dominating the tweets in our database.
Continue Reading Part III: How does Congress Feel about China?
Part IV: Does Congress Come Together on China?
In our last blog, we showed a remarkable convergence between Democrats’ and Republicans’ negative sentiments toward China. How deep does this bipartisan consensus go? Does this consensus involve repeated interaction on social media between Democrats and GOP lawmakers? Are they equally negative towards China when discussing the same topics?
Continue Reading Part IV: Does Congress Come Together on China?
Footnotes
- The UI for this feature is adapted from items in the shinythings open source GitHub repository.
- The 89 subtopic list can be found in the methodology notes.
- Because our data collection began in April 2019, there is incomplete data and missing graphics for the first session of the 116th Congress.
- https://selectcommitteeontheccp.house.gov/
- This is different from the Influence topic which focuses on perceived Chinese influence within the United States.
Cover image generated by Young Yang using Midjourney.