carsonyl / pypac

Find and use proxy auto-config (PAC) files with Python and Requests.
https://pypac.readthedocs.io
Apache License 2.0
71 stars 19 forks source link

no useful pac function to use in the pypac, hope one day can come true the function #62

Closed god-lin closed 2 years ago

god-lin commented 2 years ago

fail first time I try to let itself to find system's proxy setting, while I really set proxy and can visit the goal site, it can't work fail second time I try to set the pac url in the code with the get_pac(), I dont know reason, the function result is None ,haha fail third time I try to download the pac file, read the pac file content to PACSession, yes, here is the Exception about follow picture.....really bad using tring, I quit haha image

carsonyl commented 2 years ago

The screenshot suggests a JavaScript error in the PAC file: convert_addr undefined. The dukpy JavaScript engine is strict about the file being correct JavaScript.