Hack Forums
[Help] how to run twitter on 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: [Help] how to run twitter on command line (/showthread.php?tid=6267299)



how to run twitter on command line - chatgptpro - Mar 31, 2024

just wondering how to do it


RE: how to run twitter on command line - webdev77 - Mar 31, 2024

It's a website that runs on AWS, Google Cloud Platform, and Azure. You can't run it in a CLI.


RE: how to run twitter on command line - Bastille - Mar 31, 2024

Are you looking for something like that ? https://itsfoss.com/terminal-web-browsers/

But I don't get the objective


RE: how to run twitter on command line - Hackers - Mar 31, 2024

(Mar 31, 2024 01:29 PM)chatgptpro Wrote:  just wondering how to do it

You want a back end script to do what exactly?


RE: how to run twitter on command line - chatgptpro - Apr 1, 2024

(Mar 31, 2024 01:40 PM)Yseurk Wrote:  Are you looking for something like that ? https://itsfoss.com/terminal-web-browsers/

But I don't get the objective


Yea this will do, thanks !


RE: how to run twitter on command line - DramaKing - Apr 1, 2024

(Mar 31, 2024 01:29 PM)chatgptpro Wrote:  just wondering how to do it

If what you're asking is how to interact with X from a command line, you can use cURL to make GET and POST requests. Beyond that you can use the free limited API access. https://developer.twitter.com/en/docs/twitter-api/getting-started/make-your-first-request


RE: how to run twitter on command line - chatgptpro - Apr 1, 2024

(Apr 1, 2024 08:13 AM)DramaKing Wrote:  If what you're asking is how to interact with X from a command line, you can use cURL to make GET and POST requests. Beyond that you can use the free limited API access. https://developer.twitter.com/en/docs/twitter-api/getting-started/make-your-first-request


Thanks!


RE: how to run twitter on command line - yoPoper - Apr 1, 2024

copuld need help too thanks boss


RE: how to run twitter on command line - Hackers - Apr 1, 2024

(Mar 31, 2024 01:40 PM)Yseurk Wrote:  Are you looking for something like that ? https://itsfoss.com/terminal-web-browsers/

But I don't get the objective

(Apr 1, 2024 08:11 AM)chatgptpro Wrote:  Yea this will do, thanks !

(Apr 1, 2024 08:13 AM)DramaKing Wrote:  If what you're asking is how to interact with X from a command line, you can use cURL to make GET and POST requests. Beyond that you can use the free limited API access. https://developer.twitter.com/en/docs/twitter-api/getting-started/make-your-first-request

(Apr 1, 2024 08:37 AM)yoPoper Wrote:  copuld need help too thanks boss




You all should check out the available packages & documentation on these pages below too. Please keep in mind I haven't explored the full code/docs for these, so I make no guarantees, but there should be enough here to get anyone started - tried to show a mix of languages too:
https://developer.twitter.com/en/docs/twitter-api/tools-and-libraries/v2
- V1 here: https://developer.twitter.com/en/docs/twitter-api/tools-and-libraries/v1
https://about.gitlab.com/blog/2023/03/21/automating-a-twitter-bot-using-gitlab-cicd/
https://github.com/devhindo/x
https://github.com/EuclidStellar/twitter-cli-golang
https://github.com/redouane59/twittered
https://github.com/sferik/t-ruby
https://github.com/IchikawaYukko/twitter-cmd

Don't forget, you can always build a CLI tool yourself by following docs:
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api


RE: how to run twitter on command line - siliconvalley - Apr 3, 2024

Install t: First, you need to install the t command-line tool. You can do this using RubyGems, assuming you have Ruby installed on your system. Open your terminal and run the following command:
gem install t

Authorize t with your Twitter account: After installing t, you need to authorize it to access your Twitter account. Run the following command:
t authorize
This will open a browser window where you'll be prompted to authorize the t application. Follow the instructions to authorize it.

Start using t: Once t is authorized, you can start using it to interact with Twitter. Here are a few examples of commands you can run:

To post a tweet:
t update "Your tweet here"

To view your timeline:
t timeline

To view mentions:
t mentions

To view your direct messages:
t direct_messages

To search for tweets:
t search "keyword"

And many more. You can explore all available commands and options by running t help.