This tool automatically searches for scholarly articles by a specific researcher and generates professional LinkedIn posts based on the selected articles.
- Search for researchers and their published papers using the Semantic Scholar API
- Select specific papers to create content for
- Generate professional LinkedIn posts using OpenAI's GPT models
- Save generated posts to a text file
-
Clone this repository:
git clone https://github.com/davidepiolomonaco/ai-post-generator cd ai-post-generator -
Install the required dependencies:
pip install -r requirements.txt
Run the application with:
python3 main.py
The application will:
- Prompt for your OpenAI API key (if not already stored)
- Ask for the name of the researcher you want to search for
- Display a list of papers authored by the researcher
- Let you select which papers to generate LinkedIn posts for
- Generate and save the posts to
output/posts.txt
- Go to OpenAI's platform website
- Create an account or log in if you already have one
- Navigate to the API keys section
- Click "Create new secret key"
- Copy the generated API key (note that you won't be able to see it again)
- Use this key when prompted by the application
main.py: Command-line interface and orchestrationarticle_search.py: Handles searching for researchers and their paperspost_generation.py: Generates LinkedIn posts using OpenAI's API
This project uses:
- Typer for the command-line interface
- OpenAI API for generating content
- Semantic Scholar API for academic paper search