Skip to content

An artificial intelligence model that randomly generates questions according to class, course and subject for the educational application.

Notifications You must be signed in to change notification settings

salihfurkaan/intellifist-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Web Scraper for Educational Content

This project contains a Python script that scrapes educational content from the website testkolik.com. It's designed to extract questions and their corresponding options for specific subjects and topics.

Features

  • Scrapes questions and options from testkolik.com
  • Supports different grades, lessons, and topics
  • Handles Turkish language content
  • Creates an API using FastAPI
  • Uses BeautifulSoup for HTML parsing

Requirements

  • Python 3.6+
  • requests
  • beautifulsoup4

Installation

  1. Clone this repository:

    git clone https://github.com/salihfurkaan/intellifist-ai
    cd intellifist-ai
    
  2. Install the required packages:

    pip install requests beautifulsoup4 google-generativeai fastapi uvicorn
    

Usage

The main script is src/data/bs_scraper.py. You can run it directly:

python src/data/bs_scraper.py

Replace GRADE, LESSON, and TOPIC with your desired values.

Function Description

The main function scrape_through_hs(grade: str, lesson: str, topic: str) takes three parameters:

  • grade: The grade level ("9-12")
  • lesson: The lesson name ("matematik","fizik","kimya","biyoloji","tarih","din-kulturu","ingilizce","cografya")
  • topic: The specific topic (e.g., "allah-insan-iliskisi") (You can find the topic via this URL )

It returns a list of dictionaries, each containing:

  • number: The question number
  • full_text: The full text of the question
  • options: A list of answer options

Disclaimer

This script is for educational purposes only. Make sure you have the right to scrape content from the target website and comply with their terms of service.

License

MIT License

About

An artificial intelligence model that randomly generates questions according to class, course and subject for the educational application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages