Skip to content

NotThePyaaz is a parody Twitter bot that tweets the funniest and weirdest headlines from the r/notthepyaaz subreddit. It uses NLP to add a humorous twist to each headline and posts them automatically to Twitter, providing daily doses of humor and satire.

Notifications You must be signed in to change notification settings

theinit01/NotThePyaaz-XBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotThePyaaz Twitter Bot 🤖

NotThePyaaz is a Twitter bot that fetches the funniest and weirdest headlines from the r/notthepyaaz subreddit and tweets them in a humorous way. It's a parody bot inspired by the NotTheOnion subreddit, delivering daily doses of humor and satire.

Features

  • 🤖 Fetches top rising posts from the r/notthepyaaz subreddit.
  • 😂 Converts headlines into humorous tweets using a Google Gemini.
  • 🐦 Automatically posts the tweets to Twitter.
  • 📝 Logs all activities for tracking.

Prerequisites

  • Python 3.x
  • Reddit API credentials
  • Twitter API credentials

Installation

  1. Clone the repository:
git clone https://github.com/theinit01/NotThePyaaz-XBot.git 
cd NotThePyaaz-XBot
  1. Install the dependencies pip install -r requirements.txt

  2. Set up environment variables:

    • Create a .env file in the root directory.
    • Add your Reddit, Google Gemini and X (Twitter) API credentials to the .env file:
  REDDIT_USERNAME=your_reddit_username
  REDDIT_PASSWORD=your_reddit_password
  REDDIT_CLIENT_ID=your_reddit_client_id
  REDDIT_CLIENT_SECRET=your_reddit_client_secret
  GEMINI_API_KEY=your_gemini_api_key
  TWITTER_API_KEY=your_twitter_api_key
  TWITTER_API_SECRET=your_twitter_api_secret
  BEARER_TOKEN=your_twitter_bearer_token
  ACCESS_TOKEN=your_twitter_access_token
  ACCESS_TOKEN_SECRET=your_twitter_access_token_secret
  1. Run the main file python3 bot.py

Contributing

Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

NotThePyaaz is a parody Twitter bot that tweets the funniest and weirdest headlines from the r/notthepyaaz subreddit. It uses NLP to add a humorous twist to each headline and posts them automatically to Twitter, providing daily doses of humor and satire.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages