Find a file
2022-11-15 14:27:16 +01:00
.github/workflows deploy renamed in a better way 2022-10-28 17:31:53 +02:00
0721_0 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_1 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_2 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_3 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_4 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_5 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_6 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_7 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_8 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_9 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_10 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_11 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_12 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_13 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_14 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_15 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_16 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_17 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_18 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_19 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_20 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_21 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_22 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_23 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_24 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_25 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_26 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_27 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_28 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_29 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_30 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_31 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_32 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_33 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_34 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_35 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_36 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_37 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_38 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
0721_39 Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
Ingegneria del Software fix 2022-11-14 17:43:37 +01:00
Scraper Downloaded 0721 questions 2022-11-15 14:27:16 +01:00
temp-imgs removed test again 2022-11-14 17:53:11 +01:00
.gitignore Added Scraper 2022-11-15 13:59:46 +01:00
diffybot.py Introduced DiffyBOT! A tool that finds duplicate questions 2022-11-06 17:26:42 +01:00
Domande SO1.txt We finally have files! 2022-10-28 16:32:32 +02:00
Domande SO2.txt We finally have files! 2022-10-28 16:32:32 +02:00
LICENSE Initial commit 2022-10-28 16:12:56 +02:00
mkdir.py Add 21-50 question of 01/22 2022-11-02 09:13:43 +01:00
motd.txt We finally have files! 2022-10-28 16:32:32 +02:00
questyman.py Introduced QuestyMAN! A tool that helps adding new questions! 2022-11-06 17:25:39 +01:00
README.md Added Scraper 2022-11-15 13:59:46 +01:00
risposte.txt Downloaded 0721 questions 2022-11-15 14:27:16 +01:00

so-un-bot

The official https://t.me/so_1_bot questions repository

🇮🇹 🇮🇹 🇮🇹

Struttura dei file

Il bot accetta le domande sia in un singolo file (utilizzato da Sistemi Operativi 1 e 2), che in file multipli (utilizzato da Ingegneria del Software)

Singolo file

  • Le domande sono separate da una riga vuota
  • Le risposte possono essere su una riga sola
  • Le risposte devono iniziano per > se sono errate, per v se sono corrette
  • Non ci possono essere righe vuote nella stessa domanda
  • Solo la domanda può contenere un'immagine, non le risposte

File multipli

  • Ogni domanda è in una directory separata
  • La directory ha come nome il numero della domanda
  • Il testo della domanda è nel file quest.txt
  • La risposta corretta è nel file correct.txt
  • Gli altri file contengono solo risposte errate
  • Sia domande che risposte possono contenere immagini (max un'immagine per domanda e una per ciascuna risposta)

Immagini

Per risparmaire traffico dati sul server, le immagini devono essere caricate su un servizio esterno (es. Imgur). Per inserire un'immagine basta aggiungere una riga contenente solo img=url immagine all'inizio della domanda o risposta. Nella struttura a file multipli, deve essere la prima riga del file, e il resto del file verrà aggiunto come didascalia.

Scraper

Per far funzionare lo scraper, è necessario creare un file .env nella directory dello scraper e inserire rispettivamente:

USER = Matricola PASSWORD = Password di infostud

Infine inserire il chromedriver semprae nella directory dello scraper.

Una volta lanciato lo script, le domande verranno inserite formattate in cartelle che verranno create all'interno della cartella Scraper. Fare attenzione al fatto che le domande con immagini non sono gestite e dovranno comunque essere inserite a mano. Non sono gestiti nemmeno le parti di codice, quindi il tag "pre" dovrà essere inserito a mano.