Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

OpenClemson/RedactDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

RedactDetect

Given a list of Tweet IDs, detect which ones have been deleted or made private.

Developed in partnership with the Social Analytics Institute.

Usage

./redact_detect.rb [file ...]

Each input file to redact_detect.rb should contain one Tweet ID per line. redact_detect.rb reads the files in order and queries the Twitter API for the specified Tweet. If the Tweet is not found, its ID will be printed to standard output. If file is a single dash ('-') or absent, redact_detect.rb will read from standard input.

NOTE: This script has no way of checking if a Tweet with the given ID did exist at some point in the past. So it is dependent on receiving correct input from a past collection of Tweets.

Requirements

This script requires the Twitter gem.

It also requires a Twitter OAuth application. Enter the client key and secret and access tokens in the Twitter::REST::Client.new block on lines 33-36.

About

Given a list of Tweet IDs, identify which ones have been deleted or made private

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages