googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.18k stars 716 forks source link

AssertionError: Fetch error, code == 403 #1512

Closed Darkdaughter closed 4 years ago

Darkdaughter commented 4 years ago

Bug report for Colab: http://colab.research.google.com/.

Hi, I am probably doing something wrong, but I cannot get the courses downloaded. I am working on Chrome. When I add the link to the course I want to download and click on the "play" button next to "Run this cell to download skillshare course" it gives me the following error at the end of running: AssertionError: Fetch error, code == 403

I am not sure how to explain it any other way; I've never done this before.

This is the string it gives

Traceback (most recent call last): File "/root/.skillshare/dl.py", line 33, in main() File "/root/.skillshare/dl.py", line 11, in main dl.download_course_by_url(course_url) File "/root/.skillshare/skillshare.py", line 29, in download_course_by_url self.download_course_by_class_id(m.group(1)) File "/root/.skillshare/skillshare.py", line 32, in download_course_by_class_id data = self.fetch_course_data_by_class_id(class_id=class_id) File "/root/.skillshare/skillshare.py", line 69, in fetch_course_data_by_class_id assert res.status_code == 200, 'Fetch error, code == {}'.format(res.status_code) AssertionError: Fetch error, code == 403

https://colab.research.google.com/github/4vian5/skillsharedl/blob/master/Skillshare1.ipynb#scrollTo=I7zT2rUX0KM4&line=1&uniqifier=1

Can someone please assist or give me any advice?

craigcitro commented 4 years ago

I'd try asking on Stack Overflow, or report the problem to the repo where you found the notebook.