Periodically collect data about my Twitter account and check in to github to preserve an audit trail.

Overview

Twitter audit trail backup

This repository backs up my follower list, following list, blocked accounts list and muted accounts list periodically using GitHub Actions.

Set up

This code currently uses both Twitter v1 and v2 APIs. v2 API is currently behind a manual approval process.

  1. Fork this repository.

  2. git rm *.txt and commit.

  3. Create a Twitter app.

  4. Go to Repository Settings → Secrets and add secrets from your Twitter app:

    • TWITTER_BEARER_TOKEN
    • TWITTER_CONSUMER_KEY
    • TWITTER_CONSUMER_SECRET
    • TWITTER_TOKEN_SECRET
  5. See .github/workflows/update.yml and modify the cron schedule (in UTC) as you see fit.

  6. Commit and push. Once the time arrives, the cron would work, and commit the lists into .txt files and push the changes.

You might also like...
twitter clone front-end for Internet Engineering course - fall 99 built by go+echo

twitter backend build twitter-like back-end for internet engeering course - fall 99 with go+echo+gorm team mates Roozbeh Sharifnasab + Parsa Fadaee +

Twitter backend - Golang
Twitter backend - Golang

A Twitter-like Website This repository contains the backend code for the final project of Fall 2020 Internet Engineering course. In this project,

A REST API microservices-based Twitter Clone server.

Simple API Twitter Clone A REST API microservices-based project to fetch, edit, post, and delete tweets. API documentation The API documentation is bu

Twitter ID Finder For Golang

Twitter ID Finder n文字の全数IDを探せます Usage $ make go build -o main main.go $ ./main Twitter ID Finder Creator: @_m_vt Digits: 2 Target IDs: 100 Really? [

Lambda stack to turn off and destroy all resources from your personal AWS Account to avoid billing surprises
Lambda stack to turn off and destroy all resources from your personal AWS Account to avoid billing surprises

AWS, Turn off my Account, please Lambda stack to turn off and destroy all resources from your personal AWS Account to avoid billing surprises Resource

Self-service account creation and credential reset for FreeIPA
Self-service account creation and credential reset for FreeIPA

Auri Auri stands for: Automated User Registration IPA Auri implements self service account creation and reset of credentials for FreeIPA Features Requ

Lookup or replace AWS account IDs with their names and vice versa

awsacc A trusty helper for working with AWS account IDs. Working with AWS account IDs often involves more manual effort than necessary. Often account

Download tracks with free account

Spotify This module works with Spotify free accounts. It can download individual tracks. It downloads the audio files served by Spotify's servers and

Spotify account generator, just for fun purpose.

go-spotify-account-generator Spotify account generator, just for fun purpose. Install $ go get github.com/HamzaAnis/go-spotify-account-generator How

Comments
  • Change readme to reflect access token instead of bearer token

    Change readme to reflect access token instead of bearer token

    The code uses access token and it seems bearer token is a leftover from previous versions.

    See here: https://github.com/ahmetb/twitter-audit-log/blob/master/tool/main.go#L38-L41

    opened by tehcyx 1
  • Settings Inquiry

    Settings Inquiry

    I am new to scraping and I am just wondering how is your code still scraping actual data from your Twitter account and the settings aren't set? By settings I mean these keys and tokens

    TWITTER_BEARER_TOKEN
    TWITTER_CONSUMER_KEY
    TWITTER_CONSUMER_SECRET
    TWITTER_TOKEN_SECRET
    
    opened by Lamiiine 1
  • updates checkout, go, go-setup versions, adds new commit

    updates checkout, go, go-setup versions, adds new commit

    Love the simplicity of this approach. Thanks! Few version updates (e.g. go update address known vulnerabilities):

    • actions/checkout from v2 to v3
    • actions/setup-go from v1 to v3
    • go from v1.14 to v1.19

    Swaps bash script on result commit to EndBug/[email protected] action and commit message with incremental run number

    opened by mchmarny 0
  • fix action config file link

    fix action config file link

    ./github/workflows/update.yml linked to https://github.com/ahmetb/twitter-audit-log/blob/master/github/workflows/update.yml caused 404 error.

    Proper link should be /.github/workflows/update.yml

    opened by sysu-yunz 0
Owner
Ahmet Alp Balkan
Senior software engineer at Google Cloud, on cloud-native technologies: Kubernetes/GKE and Cloud Run.
Ahmet Alp Balkan
A console based twitter client for displaying tweets from twitter lists

About I follow a bunch of people who span a bunch of topics and wanted a way to keep track of all the cool stuff they post. I figured there would cert

esell 30 Oct 6, 2022
wtf? paranormal twitter.com activity using Twitter Cards. Migros.tr #DoITYourself

GTKE - go-tweet-kart-ele wtf? paranormal twitter.com activity using Twitter Cards. Migros.tr #DoITYourself Just for fun. Go. # You have go. go install

Jan Hacker 0 Dec 7, 2021
Twitter - Twitter API with oauth in Golang

twitter: Twitter API with oauth in Golang Installation and Usage Install go get

majiaqi 0 Jan 7, 2022
An app/container built in Go to automate a Twitter account using Notion

Notion Tweeter Notion Tweeter is a utility I built using Go to help automate scheduling my tweets using Notion as a backend. More documentation coming

Brian Morrison II 2 Sep 26, 2022
rpCheckup is an AWS resource policy security checkup tool that identifies public, external account access, intra-org account access, and private resources.

rpCheckup - Catch AWS resource policy backdoors like Endgame rpCheckup is an AWS resource policy security checkup tool that identifies public, externa

Gold Fig Labs Inc. 149 Dec 26, 2022
Account - Ant Chain ACCOUNT SDK for Go

English | 简体中文 Ant Chain ACCOUNT SDK for Go Requirements It's necessary for you

null 0 Jan 13, 2022
Azure Data Lake Storage Account Share 9p File System

dlfs Azure storage account (data lake) v2 as a 9p file system. Fork of abfs. Written in Go. Created during the 2021 MS hackathon. Build Currently the

Sean Hinchee 5 Oct 15, 2021
Go Twitter REST and Streaming API v1.1

go-twitter go-twitter is a Go client library for the Twitter API. Check the usage section or try the examples to see how to access the Twitter API. Fe

Dalton Hubble 1.6k Dec 28, 2022
A Go client library for the Twitter 1.1 API

Anaconda Anaconda is a simple, transparent Go package for accessing version 1.1 of the Twitter API. Successful API queries return native Go structs th

Aditya Mukerjee 1.1k Jan 1, 2023
Scrape the Twitter Frontend API without authentication with Golang.

Twitter Scraper Twitter's API is annoying to work with, and has lots of limitations — luckily their frontend (JavaScript) has it's own API, which I re

Nomadic 311 Dec 29, 2022