A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
at main 42 lines 1.2 kB view raw
1# --- Twitter Configuration --- 2# 1. Log in to x.com (RECOMMENDED: Use a separate "burner" account!) 3# 2. Open Developer Tools (F12) -> Application -> Cookies 4# 3. Copy the values for 'auth_token' and 'ct0' 5TWITTER_AUTH_TOKEN= 6TWITTER_CT0= 7 8# The username of the account you want to MIRROR (e.g., your main account) 9# If left empty, it tries to mirror the account you logged in with. 10TWITTER_TARGET_USERNAME= 11 12# --- Bluesky Configuration --- 13BLUESKY_IDENTIFIER= 14# Generate an App Password in Bluesky Settings -> Privacy & Security 15BLUESKY_PASSWORD= 16 17# --- Optional --- 18CHECK_INTERVAL_MINUTES=5 19# BLUESKY_SERVICE_URL=https://bsky.social 20PORT=3000 21 22# --- AI Configuration (Optional) --- 23# Supports: gemini, openai, anthropic, custom 24# Default provider is 'gemini' if GEMINI_API_KEY is present. 25 26# 1. Google Gemini (Default) 27# Get your API key from https://ai.google.dev/ 28GEMINI_API_KEY= 29 30# 2. OpenAI / OpenRouter / Custom 31# OPENAI_API_KEY=sk-... 32# AI_PROVIDER=openai # or 'custom' 33# AI_MODEL=gpt-4o 34# AI_BASE_URL=https://api.openai.com/v1 # or https://openrouter.ai/api/v1 35 36# 3. Anthropic 37# ANTHROPIC_API_KEY=sk-ant-... 38# AI_PROVIDER=anthropic 39# AI_MODEL=claude-3-5-sonnet-20241022 40 41# Generic Override (takes precedence) 42# AI_API_KEY=