Skip to content

ghazayel/x2wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

# Twitter to WhatsApp Automation

This project contains code designed to automate the process of copying the latest tweet from a Twitter account and pasting it into a WhatsApp channel via WhatsApp Web. The code runs every 2 minutes without requiring any additional configuration on Windows. To prevent duplicate entries, a separate text file is used to track already posted tweets.

## Features

- Opens Twitter in Google Chrome.
- Selects the latest tweet from the specified Twitter account.
- Opens WhatsApp Web.
- Pastes the tweet text into a specified WhatsApp channel.
- Runs automatically every 2 minutes.
- Maintains a separate text file to avoid posting the same tweet multiple times.

## Getting Started

1. **Clone the Repository**

   ```bash
   git clone https://github.com/ghazayel/x2wp.git
  1. Install Dependencies

    Make sure you have the necessary libraries installed. You may need packages like Selenium for browser automation. Install them using pip:

    pip install selenium
  2. Configure the Code

    • Update the script with your Twitter account details and WhatsApp Web channel information.
    • Ensure Google Chrome is installed and the ChromeDriver executable is in your PATH.
  3. Run the Script

    Execute the script using Python:

    python x2wp.py
  4. Automatic Execution

    To ensure the script runs every 2 minutes, you can use Task Scheduler on Windows:

    • Open Task Scheduler.
    • Create a new task and set it to run the script every 2 minutes.

Notes

  • This script is designed to run on Windows and requires no additional configuration.
  • Ensure your Twitter and WhatsApp Web sessions are logged in and accessible by the script.

Contribution

This is the first working code generated from scratch by @ghazayel. Contributions and feedback are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to adjust any details to better fit your project!

About

Twitter to WhatsApp Automation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages