ai-quizgenie is an Apify Actor that extracts content from webpages and PDFs to generate multiple-choice quiz questions (MCQs) using LLMs (GPT-3.5, GPT-4, etc.).
ai-quizgenie is an Apify Actor that extracts content from webpages and PDFs to generate multiple-choice quiz questions (MCQs) using LLMs (GPT-3.5, GPT-4, etc.).
✅ Supports Web & PDF Extraction
✅ Dynamic Model Selection (GPT-3.5, GPT-4, etc.)
✅ LangGraph for Workflow Automation
✅ Apify-Compatible for Deployment
1/ai-quizgenie/ 2│── src/ 3│ ├── __main__.py # Executes main.py 4│ ├── main.py # Apify Actor Execution and Langgraph flow 5│ ├── tools.py # Web & PDF Extraction 6│ ├── utils.py # Quiz Generation Logic 7│ ├── models.py # Pydantic Schema 8│── dataset_schema.json # Defines Output Format 9│── requirements.txt # Python Dependencies 10│── Dockerfile # Containerized Deployment 11│── input.json # Example Input 12│── README.md # Documentation
1git clone https://github.com/yourusername/ai-quizgenie.git 2cd ai-quizgenie
pip install -r requirements.txt
If using OpenAI, set your API keys:
1export OPENAI_API_KEY="your-api-key-here" 2export OPENAI_API_BASE="your-base-url"
apify run -i input.json
input.json
1{ 2 "url": "https://en.wikipedia.org/wiki/Artificial_intelligence", 3 "num_questions": 5, 4 "difficulty": "Medium", 5 "model": "gpt-4-turbo" 6}
dataset_schema.json
)1{ 2 "model": "gpt-4-turbo", 3 "questions": [ 4 { 5 "question": "Who is considered the father of AI?", 6 "options": ["Alan Turing", "John McCarthy", "Geoffrey Hinton", "Yann LeCun"], 7 "answer": "John McCarthy", 8 "explanation": "John McCarthy coined the term 'Artificial Intelligence' in 1956." 9 } 10 ] 11}
apify push
apify call ball-ceg/ai-quizgenie -i input.json
input.json
to change the difficulty, number of questions, or LLM modelutils.py
to tweak the quiz generation promptgraph.py
to add more processing stepsWant to improve AI QuizGenie? Open a PR or suggest features! 🚀
Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.
No. This is a no-code tool — just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.
It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.
Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.
You can use the Try Now button on this page to go to the scraper. You’ll be guided to input a search term and get structured results. No setup needed!