עזרה | הורדת ספרים מ'כותר' – בקשת עזרה לפתרון בעיה בסקריפט
-
מצאתי לאחרונה סקריפט שבעזרתו ניתן להוריד ספר שלם מ'כותר' לקובץ 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)מה אפשר לעשות כדי לפתור את זה?
הנה קישור לסקריפט עצמו.
-
מצאתי לאחרונה סקריפט שבעזרתו ניתן להוריד ספר שלם מ'כותר' לקובץ 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)מה אפשר לעשות כדי לפתור את זה?
הנה קישור לסקריפט עצמו.
@יוסף-אומץ המפתח עונה על זה כאן בפוסט הזה,
https://github.com/ItaiAviad/Kotar_Downloader/issues/1#issuecomment-2291838999 -
ב בוזגלו הישיבישער התייחס לנושא זה ב
-
שלום, מנסה גם להוריד את הספרים מאתר כותר (יש לי מנוי) וכשאני מנסה להריץ את הסקריפט הוא כותב לי
/KotarApp/Viewer.aspx?nBookID=94158328#1.0.6.default:1 Access to fetch at 'https://kotarimagesstg.cet.ac.il/GetPageImg_v2.ashx?Type=page_img&gPageToken=e6a5bd7d-4715-4726-826f-c6ac9bc189ea&nStep=7&nVersion=10' 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.הסבר על השגיאה
ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250 GET https://kotarimagesstg.cet.ac.il/GetPageImg_v2.ashx?Type=page_img&gPageToken=e6a5bd7d-4715-4726-826f-c6ac9bc189ea&nStep=7&nVersion=10 net::ERR_FAILED
dtAWF @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250
fetch @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:276
xa @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:275
copyPages @ VM339:27
(אנונימית) @ VM339:16
script
(אנונימית) @ VM339:9הסבר על השגיאה
ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250 Uncaught (in promise) TypeError: Failed to fetch
at Object.dtAWF [as aWF] (ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250:385)
at Object.fetch (ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:276:182)
at xa (ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:275:13)
at copyPages (<anonymous>:27:19)
at HTMLScriptElement.<anonymous> (<anonymous>:16:73)
dtAWF @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250
fetch @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:276
xa @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:275
copyPages @ VM339:27
(אנונימית) @ VM339:16
script
(אנונימית) @ VM339:9הסבר על השגיאהאני לא ממש מבין בתחום, אשמח לעזרה איך להתגבר על התקלה
-
שלום, מנסה גם להוריד את הספרים מאתר כותר (יש לי מנוי) וכשאני מנסה להריץ את הסקריפט הוא כותב לי
/KotarApp/Viewer.aspx?nBookID=94158328#1.0.6.default:1 Access to fetch at 'https://kotarimagesstg.cet.ac.il/GetPageImg_v2.ashx?Type=page_img&gPageToken=e6a5bd7d-4715-4726-826f-c6ac9bc189ea&nStep=7&nVersion=10' 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.הסבר על השגיאה
ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250 GET https://kotarimagesstg.cet.ac.il/GetPageImg_v2.ashx?Type=page_img&gPageToken=e6a5bd7d-4715-4726-826f-c6ac9bc189ea&nStep=7&nVersion=10 net::ERR_FAILED
dtAWF @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250
fetch @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:276
xa @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:275
copyPages @ VM339:27
(אנונימית) @ VM339:16
script
(אנונימית) @ VM339:9הסבר על השגיאה
ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250 Uncaught (in promise) TypeError: Failed to fetch
at Object.dtAWF [as aWF] (ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250:385)
at Object.fetch (ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:276:182)
at xa (ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:275:13)
at copyPages (<anonymous>:27:19)
at HTMLScriptElement.<anonymous> (<anonymous>:16:73)
dtAWF @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:250
fetch @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:276
xa @ ruxitagentjs_ICA7NVfqrtux_10321250808084810.js:275
copyPages @ VM339:27
(אנונימית) @ VM339:16
script
(אנונימית) @ VM339:9הסבר על השגיאהאני לא ממש מבין בתחום, אשמח לעזרה איך להתגבר על התקלה
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות