rename
This commit is contained in:
parent
652f04461b
commit
989a563b1d
|
@ -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)
|
||||||
|
|
|
@ -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):
|
|
@ -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):
|
|
@ -1,4 +1,4 @@
|
||||||
from stuff.helpers import make_valid_filename
|
from module.helpers import make_valid_filename
|
||||||
|
|
||||||
|
|
||||||
class ModuleItemView:
|
class ModuleItemView:
|
|
@ -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):
|
Loading…
Reference in New Issue