summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-canvasscraper.spec207
-rw-r--r--sources1
3 files changed, 209 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5f4e2d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CanvasScraper-0.5.6.dev0.tar.gz
diff --git a/python-canvasscraper.spec b/python-canvasscraper.spec
new file mode 100644
index 0000000..31f4fb7
--- /dev/null
+++ b/python-canvasscraper.spec
@@ -0,0 +1,207 @@
+%global _empty_manifest_terminate_build 0
+Name: python-CanvasScraper
+Version: 0.5.6.dev0
+Release: 1
+Summary: D/L Lectures/Data from Canvas
+License: MIT License
+URL: https://gitlab.com/stucamp/canvasscraper
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3d/02/4eb7bd490a90ba469e132bdd5d86a9f971597f2cd48fca28cf18221cb64f/CanvasScraper-0.5.6.dev0.tar.gz
+BuildArch: noarch
+
+
+%description
+# CanvasScraper (Lecture Downloader)
+ [![pipeline status](https://gitlab.com/stucamp/canvasscraper/badges/master/pipeline.svg)](https://gitlab.com/stucamp/canvasscraper/commits/master)
+ [![coverage report](https://gitlab.com/stucamp/canvasscraper/badges/master/coverage.svg)](https://gitlab.com/stucamp/canvasscraper/commits/master)
+
+### Description
+
+A simple program that facilitates the downloading of course materials hosted on Canvas Online Learning Platform. Using Google Chrome (chromedriver) or Firefox (geckodriver), either with or without GUI, after logging-in, it will traverse your courses, finding video links and download them as videos you can watch off-line or mp3 for you to listen on the go.
+
+### Installation
+
+To install the library, run:
+
+pip3 install canvasscraper
+
+
+### Configuration
+
+Then either call it in your code like so:
+
+from canvasscraper.fileops import XXXX
+from canvasscraper.objects import XXXX
+
+Or run it as a CLI program using (coming soon):
+
+-b broswer
+-gui is flagged will show browser as functions
+-up username password
+-sch school subdomain asu by default
+
+
+There will options for the output directory structure, saving of URL list, potentially saving of slide, and
+maybe even page text saved to file.
+
+This is an example of download file structure/options:
+
+
+
+### Requirements
+
+https://github.com/shadowmoose/pyderman
+
+https://github.com/SeleniumHQ/selenium
+
+https://github.com/ytdl-org/youtube-dl
+
+### Useful Resources
+
+%package -n python3-CanvasScraper
+Summary: D/L Lectures/Data from Canvas
+Provides: python-CanvasScraper
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-CanvasScraper
+# CanvasScraper (Lecture Downloader)
+ [![pipeline status](https://gitlab.com/stucamp/canvasscraper/badges/master/pipeline.svg)](https://gitlab.com/stucamp/canvasscraper/commits/master)
+ [![coverage report](https://gitlab.com/stucamp/canvasscraper/badges/master/coverage.svg)](https://gitlab.com/stucamp/canvasscraper/commits/master)
+
+### Description
+
+A simple program that facilitates the downloading of course materials hosted on Canvas Online Learning Platform. Using Google Chrome (chromedriver) or Firefox (geckodriver), either with or without GUI, after logging-in, it will traverse your courses, finding video links and download them as videos you can watch off-line or mp3 for you to listen on the go.
+
+### Installation
+
+To install the library, run:
+
+pip3 install canvasscraper
+
+
+### Configuration
+
+Then either call it in your code like so:
+
+from canvasscraper.fileops import XXXX
+from canvasscraper.objects import XXXX
+
+Or run it as a CLI program using (coming soon):
+
+-b broswer
+-gui is flagged will show browser as functions
+-up username password
+-sch school subdomain asu by default
+
+
+There will options for the output directory structure, saving of URL list, potentially saving of slide, and
+maybe even page text saved to file.
+
+This is an example of download file structure/options:
+
+
+
+### Requirements
+
+https://github.com/shadowmoose/pyderman
+
+https://github.com/SeleniumHQ/selenium
+
+https://github.com/ytdl-org/youtube-dl
+
+### Useful Resources
+
+%package help
+Summary: Development documents and examples for CanvasScraper
+Provides: python3-CanvasScraper-doc
+%description help
+# CanvasScraper (Lecture Downloader)
+ [![pipeline status](https://gitlab.com/stucamp/canvasscraper/badges/master/pipeline.svg)](https://gitlab.com/stucamp/canvasscraper/commits/master)
+ [![coverage report](https://gitlab.com/stucamp/canvasscraper/badges/master/coverage.svg)](https://gitlab.com/stucamp/canvasscraper/commits/master)
+
+### Description
+
+A simple program that facilitates the downloading of course materials hosted on Canvas Online Learning Platform. Using Google Chrome (chromedriver) or Firefox (geckodriver), either with or without GUI, after logging-in, it will traverse your courses, finding video links and download them as videos you can watch off-line or mp3 for you to listen on the go.
+
+### Installation
+
+To install the library, run:
+
+pip3 install canvasscraper
+
+
+### Configuration
+
+Then either call it in your code like so:
+
+from canvasscraper.fileops import XXXX
+from canvasscraper.objects import XXXX
+
+Or run it as a CLI program using (coming soon):
+
+-b broswer
+-gui is flagged will show browser as functions
+-up username password
+-sch school subdomain asu by default
+
+
+There will options for the output directory structure, saving of URL list, potentially saving of slide, and
+maybe even page text saved to file.
+
+This is an example of download file structure/options:
+
+
+
+### Requirements
+
+https://github.com/shadowmoose/pyderman
+
+https://github.com/SeleniumHQ/selenium
+
+https://github.com/ytdl-org/youtube-dl
+
+### Useful Resources
+
+%prep
+%autosetup -n CanvasScraper-0.5.6.dev0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-CanvasScraper -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.6.dev0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..74d1715
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2dae687850fa7e3709063e178de97099 CanvasScraper-0.5.6.dev0.tar.gz