/Unofficial-SchoolMouv-Extended

A free tool which can download schoolmouv's premium pdfs and videos

Primary LanguagePythonOtherNOASSERTION

Unofficial SchoolMouv Extended Vers.

A free tool which can download schoolmouv's premium pdfs (fiche-de-cours and fiche-de-revisions) and videos easily with no account nor complicate step 🎈

⚠️ This tool isn't affiliated to SchoolMouv in any way, make sure you've read their privacy policy before use⚠️

A great thanks to t0pl and his project schoolmouv-python. This repository is a extanded version of his work and it would not have happened without his remarkable work.

 t0pl    -> All stuff related to the download function of the script (schoolmouv.py)
 Rayster4  -> All stuff related to the Webscraping function of the script (Webscrap.py)

Prerequisites

Modules (see requirements.txt) : bs4, requests, tqdm, urllib==1.26.16, colorama and tk

Python version : 3.6 and above

Run:

pip install bs4 requests tqdm urllib==1.26.16 colorama tk

or

pip install -r requirements.txt

Usage (see Examples folder)

for a basic usage, you can just do :

from tkinter import Tk 
from tkinter.filedialog import askopenfilename, askdirectory
from schoolmouv.Webscrap import WebScrap
import os 

path = askdirectory()
os.chdir(path=path)
course = "https://www.schoolmouv.fr/cours/les-caracteristiques-du-capitalisme-des-annees-1920-/fiche-de-cours" # PDF
WebScrap.scrap(url=course, is_pdf=True, overwrite=False, path=os.getcwd())
course = "https://www.schoolmouv.fr/cours/les-caracteristiques-du-capitalisme-des-annees-1920-/cours-video" # Vidéo
WebScrap.scrap(url=course, is_pdf=False, overwrite=False, path=os.getcwd())

Step by step

if you have git and know how to use it, you can just clone the repository and use it like you want

git clone https://github.com/Rayster4/Unofficial-SchoolMouv-Extended

Otherwise, if you are not familiar with git nor python :

  • Download the branch by using the Download zip button under the green <> code button.

  • Extract into a folder

  • open a terminal in the folder with all files (windows button -> 'cmd')

cd C:\the_folder
  • Just run the main.py :)
python main.py

There is also a executable but windows seems to have taken a grudge against it, so, it's up to you. (it's safe)