vyoma_download package¶
Submodules¶
vyoma_download.vyoma_download module¶
Vyoma Class
-
class
vyoma_download.vyoma_download.Course(url_or_id, user)[source]¶ Bases:
object-
base_url= 'https://www.sanskritfromhome.in/course'¶
-
download_content(document=True, audio=True, video=True)[source]¶ Download course content (audios, documents and video-links)
- document : bool, optional
- If True, download document links. The default is True.
- audio : bool, optional
- If True, download audio links. The default is True.
- video : bool, optional
- If True, download video links. The default is True.
- status : bool
- True if the download funcion completed successfully. Does not mean that all the files were downloaded successfully.
-
fetch_links()[source]¶ Fetch all links of downloadable content for a course.
- links : dict
- Links to audio, video and documents from the course.
-
fetch_page()[source]¶ Get contents of the course page
- RuntimeError
- If called without a valid login.
- html
- HTML content of the course page.
-
load_progress()[source]¶ Load download progress
Progress is a dictionary of links with meta-information. Meta-information is a dictionary, loaded as an instance of Link().
-
pattern= '(http(s|)://|)(www.|)sanskritfromhome.in/course/([^/]*)'¶
-
-
class
vyoma_download.vyoma_download.Link(url: str, type: str, path: str = None, date: str = None, complete: bool = False)[source]¶ Bases:
object-
complete= False¶
-
date= None¶
-
path= None¶
-
Module contents¶
Top-level package for vyoma-download.