Skip to main content
QUICK REVIEW

[Paper Review] twAwler: A lightweight twitter crawler

Polyvios Pratikakis|arXiv (Cornell University)|Apr 20, 2018
Software Engineering ResearchComputer Science17 references10 citations
TL;DR

twAwler is a lightweight, user-centric Twitter crawler that efficiently discovers and monitors language-specific communities—demonstrated for Greek-speaking users—by leveraging multiple Twitter API endpoints to extract full user timelines and interaction graphs (retweet, mention, reply, quote, follow) while respecting rate limits and policies. It enables complete, policy-compliant data collection on a single machine, yielding a 750M-tweet dataset with rich relational structure.

ABSTRACT

This paper presents twAwler, a lightweight twitter crawler that targets language-specific communities of users. twAwler takes advantage of multiple endpoints of the twitter API to explore user relations and quickly recognize users belonging to the targetted set. It performs a complete crawl for all users, discovering many standard user relations, including the retweet graph, mention graph, reply graph, quote graph, follow graph, etc. twAwler respects all twitter policies and rate limits, while able to monitor large communities of active users. twAwler was used between August 2016 and March 2018 to generate an extensive dataset of close to all Greek-speaking twitter accounts (about 330 thousand) and their tweets and relations. In total, the crawler has gathered 750 million tweets of which 424 million are in Greek; 750 million follow relations; information about 300 thousand lists, their members (119 million member relations) and subscribers (27 thousand subscription relations); 705 thousand trending topics; information on 52 million users in total of which 292 thousand have been since suspended, 141 thousand have deleted their account, and 3.5 million are protected and cannot be crawled. twAwler mines the collected tweets for the retweet, quote, reply, and mention graphs, which, in addition to the follow relation crawled, offer vast opportunities for analysis and further research.

Motivation & Objective

  • Address the challenge of efficiently crawling large, active Twitter communities while respecting rate limits and Twitter's terms of service.
  • Enable complete, non-sampling-based data collection for language-specific user communities, avoiding reliance on multiple accounts or expensive infrastructure.
  • Provide a lightweight, open-source tool deployable on a single machine that supports continuous, restart-tolerant crawling of user content and relations.
  • Facilitate advanced social network analysis by mining multiple interaction graphs (follow, retweet, mention, reply, quote) with timestamps for dynamic analysis.
  • Support quasi-anonymized data sharing by extracting only user IDs and metadata, aligning with Twitter's data reuse policies.

Proposed method

  • Uses the Twitter /statuses/user_timeline endpoint to crawl up to 3,200 tweets per user, prioritizing users with high expected tweet volume or long time since last crawl to minimize request overhead and prevent tweet loss.
  • Employs a dual-priority crawling strategy: sorting by expected tweets since last crawl and by time since last visit to balance freshness and efficiency.
  • Leverages the /statuses/lookup endpoint to discover and crawl retweets, replies, and quoted tweets, enabling full thread reconstruction and interaction graph mining.
  • Seeds the tracked user set using the /statuses/filter streaming API with Greek stopwords and expands the set by tracking new users via retweets from already tracked users.
  • Maintains stateful tracking of users across crawls, including sets for Greek-speaking, non-Greek, suspended, deleted, protected, and dead accounts to ensure data consistency.
  • Processes and stores all crawled data—including follow, retweet, mention, reply, quote, favorite, and list relations—with timestamps to support dynamic network analysis.

Experimental results

Research questions

  • RQ1How can a lightweight, single-machine Twitter crawler efficiently discover and monitor all publicly accessible content of a language-specific user community without violating rate limits or Twitter’s terms of service?
  • RQ2To what extent can a user-centric crawler like twAwler reconstruct full interaction graphs (retweet, mention, reply, quote) while minimizing request overhead and tweet loss?
  • RQ3What is the performance and scalability of a single-credential, single-machine crawler in maintaining a complete, long-term crawl of a large, active user community?
  • RQ4How effectively can twAwler support advanced social network analysis by extracting and timestamping multiple relational structures from crawled data?
  • RQ5Can twAwler enable quasi-anonymized data sharing and replication of prior research by exposing only user IDs and metadata while preserving analytical utility?

Key findings

  • twAwler successfully crawled 750 million tweets (including 424 million in Greek) and 750 million follow relations over 20 months using only a single user’s credentials and a desktop PC.
  • The crawler discovered 300,000 Twitter lists with 119 million member relations and 27,000 subscription relations, enabling analysis of community-based user groupings.
  • The system identified 52 million unique users, including 292,000 suspended and 141,000 deleted accounts, and 3.5 million protected accounts that could not be crawled.
  • By prioritizing high-activity and long-inactive users, twAwler reduced request load per tweet by 50% compared to a baseline strategy, significantly improving crawl efficiency.
  • The crawler enabled full reconstruction of the retweet, mention, reply, and quote graphs with timestamps, supporting dynamic network analysis and propagation pattern studies.
  • The dataset generated by twAwler supports advanced analysis, including sentiment analysis using a Greek sentiment lexicon, and enables replication of prior work on Greek Twitter events with full relational context.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.