An automated flashcard generation tool that creates study materials on any subject by scraping educational content and using AI to generate practice questions.
- Automated Content Gathering: Uses Playwright to scrape educational content from Encyclopedia.com
- AI-Powered Question Generation: Leverages Google Gemini to summarize and convert content into flashcard-style questions
- Multiple Export Formats: Compatible with popular edTech platforms:
- Kahoot
- Quizlet
- Gimkit
- Subject Flexibility: Generate flashcards for any topic you want to study
- Python: Core programming language
- Playwright: Browser automation for web scraping
- Encyclopedia.com: Primary source for educational content
- Google Gemini API: AI-powered content summarization and question generation
- Custom formatters: Export utilities for various quiz platforms
- Python 3.8+
- Google Gemini API key
- Internet connection for content scraping
- Clone the repository:
git clone https://github.com/CoreyJness/flashCardGenerator.git
cd flashCardGenerator- Create and activate a virtual environment:
python -m venv venv
# Windows
venv\Scripts\activate
# Mac/Linux
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Install Playwright browsers:
playwright install- Set up your API keys:
- Create a
.envfile in the project root - Add your Gemini API key:
- Create a
GEMINI_API_KEY=your_api_key_here
- Run the program:
python main.py-
Enter the subject you want to create flashcards for
-
Choose your preferred export format (Kahoot, Quizlet, or Gimkit)
-
The program will:
- Search Encyclopedia.com for relevant content
- Extract and process the information
- Generate flashcard questions using Gemini
- Export in your chosen format
flashCardGenerator/
├── main.py # Main application entry point
├── .gitignore
└── README.md # Project documentation
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
This tool is for educational purposes only. Please respect Encyclopedia.com's terms of service and use rate limiting to avoid overloading their servers.
Corey Jones - @CoreyJness
Project Link: https://github.com/CoreyJness/flashCardGenerator
Happy Studying! 📚