Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-alchemist01/intellifist-ai
An artificial intelligence model that randomly generates questions according to class, course and subject for the educational application we will make.
https://github.com/code-alchemist01/intellifist-ai
api beautifulsoup fastapi gemini python random-generation scraping-python scraping-websites token tokenization
Last synced: 2 months ago
JSON representation
An artificial intelligence model that randomly generates questions according to class, course and subject for the educational application we will make.
- Host: GitHub
- URL: https://github.com/code-alchemist01/intellifist-ai
- Owner: code-alchemist01
- Created: 2024-10-26T17:46:57.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-27T10:44:16.000Z (2 months ago)
- Last Synced: 2024-10-27T22:21:44.226Z (2 months ago)
- Topics: api, beautifulsoup, fastapi, gemini, python, random-generation, scraping-python, scraping-websites, token, tokenization
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
- Uses BeautifulSoup for HTML parsing
- Creates an API using fastapi## Requirements
- Python 3.6+
- requests
- beautifulsoup4## Installation
1. Clone this repository:
```
https://github.com/code-alchemist01/intellifist-ai.git
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 ("1-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 topics via the URL on [this](https://www.testkolik.com/) site)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](https://opensource.org/licenses/MIT)