iamtheyammer / fetch-toyota-service-manuals

Downloads PDF versions of Toyota Service Manuals from TIS
GNU General Public License v3.0
24 stars 6 forks source link

TimeoutError when trying to grab older manuals #4

Open cfmackey opened 1 month ago

cfmackey commented 1 month ago

When trying to download an older manual (say 1993 Truck), the script will proceed normally but then error when trying to download first file:

Downloading page How To Use This Manual: How To Use This Manual (1995 T100)... Error saving page How To Use This Manual: How To Use This Manual (1995 T100): TimeoutError: page.goto: Timeout 30000ms exceeded. =========================== logs =========================== navigating to "https://techinfo.toyota.com/t3Portal/document/rm/RM414U/xhtml/RM414U_0001.html", waiting until "load" ============================================================

It'll continue erroring out in the same way for the whole manual.

It appears older manuals display their PDFs differently on the site, using a PDF viewer instead of directly opening in TIS's browser. If you open the PDFs with Right Click > Open New Tab, the path to the file is different from that the script is trying to load when the error occurs. In the above example, the correct URL is:

https://techinfo.toyota.com/t3Portal/document/rm/RM306U/pdf/IN/How_To_Use_This_Manual.pdf?locale=na

cfmackey commented 1 month ago

I was able to bypass the error by running in headed mode. Closing issue.

Maybe add this as a tip to the documentation?

cfmackey commented 1 month ago

Reopening - headed mode seems to just yield blank pdf files. Trying to investigate further.

elliotmatson commented 1 month ago

@cfmackey This is kinda hacky, but I have a fork that worked for me. This only works in headless mode right now