zeltox / Google-Drive-PDF-Downloader

MIT License
434 stars 124 forks source link

Does not work #1

Open GuyMight44 opened 4 years ago

GuyMight44 commented 4 years ago

When attempting to download a Google Slideshow with exports disabled, it wont work

This was tested in Google Chrome & Mozilla Firefox.

In Firefox, there were too many erorrs listed, mostly to do with CORS.

In firefox, i was able to get something working but it woudnt work

(I only used MEthod 1)

  1. I had to change "let doc = "";" to " let something_else=""; "
  2. When I ran it, it did give the download prompt but it downloaded with 0 bytes
GuyMight44 commented 4 years ago

Method 2 does not work at all

zeltox commented 4 years ago

Hi @GuyMight44, no changes need to be made to make the script work.

Also i'm not sure what you mean by this, I had to change "let doc = "";" to " let something_else=""; " kindly use the code tag to specify the code so that it's easier for others to understand the code. If you are trying to give a custom file name just follow the instructions shown on the main repository page.

Also send the link to the file which you are trying to download so that it will be helpful to check for bugs. No worries i will test the code again by downloading a large PDF file and will update you soon!

zeltox commented 4 years ago

Hi @GuyMight44, I have finished testing the code, it works perfectly for me! Send the link to the file which you are trying to download so that i can check for any bugs.

taurtk commented 4 years ago

Hi @zeltox pls download this file your program is not working on my pc https://drive.google.com/drive/folders/19imTw6LgoVEt_qeUA7lix8RaJk402lzI

zeltox commented 4 years ago

Hi @zeltox pls download this file your program is not working on my pc https://drive.google.com/drive/folders/19imTw6LgoVEt_qeUA7lix8RaJk402lzI

Hi @taurtk, looks the link which you posted was not valid. Kindly send a valid link so that i can help you.

link error
robododge commented 3 years ago

I had the same problem as @taurtk , the variable doc was already use in the JavaScript scope, so I renamed it to doc1

Maybe I can send a patch

-    let pdfDocumentName = "Document";
-    let doc = "";
+    let pdfDocumentName = "alg_dp";
+    let doc1= "";
robododge commented 3 years ago

Using method one, I was downloading a 40 page google doc. The script hung at iteration 3979 while processing the big document. Got a QUIC protocol error, looks like the connection timed out while downloading over the QUIC protocol.

3979

4015456293-client_js_prod_kix_core.js:340 GET https://docs.google.com/document/d/1SGnP9BaCauNpUDF37Zjy89ahkGhKqNyBJyFPtHm-dTo/bind?id=1SGnP9BaCauNpUDF37Zjy89ahkGhKqNyBJyFPtHm-dTo&sid=a7bfcef995806e9&token=AC4w5ViQLuqT2vKWNwq_t8oSAQ8Mbkn2UQ%3A1614012901737&includes_info_params=true&VER=8&lsq=1614012375653&u=04347338890024080529&flr=0&gsi=0&ssfi=1999&ar=1295&arat=jH1q_CK3Zf_ucg&smv=12&cimpl=0&RID=rpc&SID=DBA6AC96D48D3DF7&CI=0&AID=119&TYPE=xmlhttp&zx=215lemioa7d4&t=1 net::ERR_QUIC_PROTOCOL_ERROR.QUIC_PUBLIC_RESET 200