Hack Forums
[Tutorial] How to use twitter from the command line - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Tutorial] How to use twitter from the command line (/showthread.php?tid=6265837)



How to use twitter from the command line - Clumsy - Mar 11, 2024

To do this, you will need Linux.

First, visit the following link and create a developer application for your account: https://developer.twitter.com/en/portal/dashboard

After that, install the necessary tools on your Linux terminal or box by following these steps:

Update your system's package list with the command: sudo apt update
Install Ruby by executing: sudo apt install ruby-full
Install Twurl, a command-line tool for Twitter, using RubyGems: gem install twurl
Update your system's package list again: sudo apt update
Install Go programming language: sudo apt install golang-go
Clone the twttr repository from GitHub: git clone https://github.com/maaslalani/twttr.git
Change your current directory to the cloned repository: cd twttr
Build the project with Go: go build
Move the built twttr binary to your system's local bin directory: sudo mv twttr /usr/local/bin/
Authorize Twurl with your Twitter consumer key and secret: twurl authorize --consumer-key your_consumer_key --consumer-secret your_consumer_secret
And you're all done!