This Python script utilizes Google Docs API and Tweepy to create a Twitter thread from a Google Docs document. The script extracts content from a Google Docs document based on specific headings, segments the content, and posts it as a Twitter thread.
- Extracts content by heading level from a Google Docs document.
- Segments the content into chunks suitable for Twitter threads.
- Posts the segmented content as a Twitter thread.
- Adds a promotional tweet at the end of the thread.
- Google Docs API
- Tweepy
- Clone the repository to your local machine.
- Install the required packages.
- Set up your API keys and credentials.
-
Set Environment Variable for API Keys
export API_KEYS="/path/to/api_keys"
-
Run the Script
python googleDocSnippet.py
This project is licensed under the MIT License.