מצאתי לאחרונה סקריפט שבעזרתו ניתן להוריד ספר שלם מ'כותר' לקובץ PDF (בתנאי שיש גישה לקרוא את כל הספר, כמובן),
דא עקא, הרצתי את הסקריפט ואני מקבל תשובה:
Access to fetch at 'https://kotarimagesstg.cet.ac.il/GetPageImg_v2.ashx?Type=page_img&gPageToken=4f801b10-c249-4721-93af-dda07d05f9bb&nStep=7&nVersion=11' from origin 'https://kotar.cet.ac.il' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
VM148:27
GET https://kotarimagesstg.cet.ac.il/GetPageImg_v2.ashx?Type=page_img&gPageToken=4f801b10-c249-4721-93af-dda07d05f9bb&nStep=7&nVersion=11 net::ERR_FAILED
VM148:27
Uncaught (in promise) TypeError: Failed to fetch
at copyPages (<anonymous>:27:19)
at HTMLScriptElement.<anonymous> (<anonymous>:16:73)
מה אפשר לעשות כדי לפתור את זה?
הנה קישור לסקריפט עצמו.