LinkedIn Post Automator is a versatile tool designed to generate content using OpenAI's GPT. It crafts compelling LinkedIn post content in response to user prompts and can optionally incorporate scraped data from designated websites. This tool ensures that fresh and captivating content is produced regularly without manual intervention.
User-specific settings are housed in the config.json
file:
bio: Your professional biography.
gpt_preamble: Initial instructions for the ChatGPT model.
gpt_token_limit: The response token limit for GPT.
open_ai_api_key: Your personal API key to access OpenAI's services.
cookies: LinkedIn cookies for authentication.
hour_interval: Interval (in hours) between each post.
random_hour_offset: Max random hour offset added to the interval.
random_min_offset: Max random minute offset added to the interval.
scrape_char_limit: Maximum character limit for web scraping (relevant if "websites" are provided).
websites: An optional array of URLs for news scraping. If not provided, the tool will lean on ChatGPT, for example, to generate daily jokes or insights based on the preamble.
pip install -r requirements.txt
example_config.json
to config.json
.config.json
file with your details and preferences.python main.py
Equipped with an internal Python scheduler, the tool ensures automated content generation at user-defined intervals, enhanced by random offsets for variability. No external cron configurations are required.
Contributions are highly appreciated! If you see potential improvements or wish to introduce new functionalities, please fork the repository and submit your pull requests. Keep your documentation clear and concise.
This project is under the MIT License.