This commit is contained in:
Cyberes 2023-10-27 16:30:38 -06:00
parent 652f04461b
commit 989a563b1d
10 changed files with 17 additions and 17 deletions

View File

@ -6,10 +6,10 @@ import jsonpickle
import yaml import yaml
from canvasapi import Canvas from canvasapi import Canvas
from stuff.const import COURSES_TO_SKIP, DL_LOCATION from module.const import COURSES_TO_SKIP, DL_LOCATION
from stuff.download_canvas import download_assignment_pages, download_course_announcement_pages, download_course_discussion_pages, download_course_files, download_course_home_page_html, download_course_html, download_course_module_pages, download_submission_attachments from module.download_canvas import download_assignment_pages, download_course_announcement_pages, download_course_discussion_pages, download_course_files, download_course_home_page_html, download_course_html, download_course_module_pages, download_submission_attachments
from stuff.get_canvas import find_course_announcements, find_course_assignments, find_course_discussions, find_course_modules, find_course_pages from module.get_canvas import find_course_announcements, find_course_assignments, find_course_discussions, find_course_modules, find_course_pages
from stuff.items import CourseView from module.items import CourseView
with open("credentials.yaml", 'r') as f: with open("credentials.yaml", 'r') as f:
credentials = yaml.full_load(f) credentials = yaml.full_load(f)

View File

@ -6,10 +6,10 @@ from http.cookiejar import MozillaCookieJar
import requests import requests
from tqdm import tqdm from tqdm import tqdm
from stuff.singlefile import download_page from module.singlefile import download_page
from stuff.const import DL_LOCATION, MAX_FOLDER_NAME_SIZE from module.const import DL_LOCATION, MAX_FOLDER_NAME_SIZE
from stuff.helpers import make_valid_filename, make_valid_folder_path, shorten_file_name from module.helpers import make_valid_filename, make_valid_folder_path, shorten_file_name
from stuff.threading import download_assignment, download_module_item from module.threading import download_assignment, download_module_item
def download_course_files(course, course_view): def download_course_files(course, course_view):

View File

@ -6,9 +6,9 @@ import requests
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from tqdm import tqdm from tqdm import tqdm
from stuff.const import DATE_TEMPLATE, DL_LOCATION, MAX_FOLDER_NAME_SIZE from module.const import DATE_TEMPLATE, DL_LOCATION, MAX_FOLDER_NAME_SIZE
from stuff.helpers import make_valid_filename, shorten_file_name from module.helpers import make_valid_filename, shorten_file_name
from stuff.items import AssignmentView, AttachmentView, DiscussionView, ModuleItemView, ModuleView, PageView, SubmissionView, TopicEntryView, TopicReplyView from module.items import AssignmentView, AttachmentView, DiscussionView, ModuleItemView, ModuleView, PageView, SubmissionView, TopicEntryView, TopicReplyView
def find_course_modules(course, course_view): def find_course_modules(course, course_view):

View File

@ -1,4 +1,4 @@
from stuff.helpers import make_valid_filename from module.helpers import make_valid_filename
class ModuleItemView: class ModuleItemView:

View File

@ -1,11 +1,11 @@
import os import os
from pathlib import Path from pathlib import Path
from stuff.singlefile import download_page from module.singlefile import download_page
from stuff.const import MAX_FOLDER_NAME_SIZE from module.const import MAX_FOLDER_NAME_SIZE
from stuff.download import download_file from module.download import download_file
from stuff.get_canvas import get_extra_assignment_files from module.get_canvas import get_extra_assignment_files
from stuff.helpers import make_valid_filename, shorten_file_name from module.helpers import make_valid_filename, shorten_file_name
def download_module_item(module, item, modules_dir, cookies_path): def download_module_item(module, item, modules_dir, cookies_path):