Skip to content

JitishxD/PostOnXWithTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

X Auto Poster on Twitter using terminal

A straightforward automation script used to post X (Formerly Twitter) updaing the daily progress of your challenge!


Needs

  • Python 3.8+
  • pip install tweepy

πŸ”‘ Configuration β€” Produce Keys and Tokens

  1. Visit this link: https://developer.x.com/en/portal/dashboard
  2. Establish a Project β†’ Make a App
  3. In the User authentication settings section:
    • App type β†’ Web App, Automated App, or Bot - App permissions β†’ Read and Write
    • Callback URL β†’ https://localhost
    • Save modifications - Website URL β†’ https://example.com (or any URL)
  4. Select the Keys and Tokens tab.
  5. Produce these four values: API Key - API Key Secret - Access Token - Access Token Secret

Note: If Access Token & Secret are not visible, ensure step 3 is saved.


πŸ”§ Environment Variables

Open src/config.py L16 update your enviromental variable.


πŸ”§ Editing the post content

Open src/main.py at L39 you can update the post content.


πŸ§ͺ Run Script

python main.py

πŸ’» Convert to .exe file

pip install pyinstaller
pyinstaller --onefile --icon=icon.ico ./src/main.py 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages