Post content to Twitter/X, Reddit, and LinkedIn via official APIs.
First time use:
bash
python3 scripts/cross_post.py init-config
Config stored at ~/.config/cross-post/config.json.
bash
# Post to all platforms
python3 scripts/cross_post.py post "Your content here"
# Post to specific platform
python3 scripts/cross_post.py post "Content" -p twitter
# Post as Twitter thread
python3 scripts/cross_post.py post "Long content..." -p twitter --thread
# Post to Reddit with title
python3 scripts/cross_post.py post "Body text" -p reddit -t "Title" -s python
# Read from file
python3 scripts/cross_post.py post -f draft.txt
# Preview formatting
python3 scripts/cross_post.py preview "Content" -p twitter
python3 scripts/cross_post.py preview "Content" -p reddit
python3 scripts/cross_post.py preview "Content" -p linkedin
--thread for long Twitter content (auto-splits at 280 chars)--file to post from filespreview before posting to check formattingConfig file is chmod 600. Never commit config.json.