openzim / openedx

Open edX (to zim) scraper
GNU General Public License v3.0
8 stars 7 forks source link

406 Errors while downloading PDF #36

Closed satyamtg closed 4 years ago

satyamtg commented 4 years ago

The scraper fails to get a PDF while offlining the course https://courses.edx.org/courses/course-v1:edX+edx201+1T2020/course/ However, visiting the link by a normal browser or wget works fine. We shall refactor the download function with the scraperlib one

WARNING:root:HTTP Error 406: Not Acceptable : http://baomee.info/pdf/technique/1.pdf but retry download
WARNING:root:HTTP Error 406: Not Acceptable : http://baomee.info/pdf/technique/1.pdf but retry download
WARNING:root:HTTP Error 406: Not Acceptable : http://baomee.info/pdf/technique/1.pdf but retry download