We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

How do I use LO's proxy settings in python scripts?

asked 2019-12-09 09:04:39 +0200

LittleMichael gravatar image

updated 2020-08-10 00:01:23 +0200

Alex Kemp gravatar image

I have a python script embedded into my document which downloads some data from the Internet. Essentially it works, but I am having trouble with the proxy settings.

I am using urllib.requests to do my web calls and whenever I am behind a proxy server, my calls fail, i.e., time out. I do have proxy settings in Extras->Options->Internet->Proxy. How do I access these settings in a python script?

If I don't have specifc proxy settings but leave the setting at System, how do I obtain the correct proxy settings for urllib to work in my LO document?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2020-10-01 10:39:48 +0200

updated 2020-10-01 10:41:33 +0200

  1. 'Tools - Options - Internet - Proxy' settings are stored as org.openoffice.Inet configuration keys which you can read pushing 'Open expert configuration' button in 'Tools - Options - LibreOffice - Advanced' dialog.
    Note:A Python script accessing such settings with is available at https://github.com/UniversoLibreMexic... - found via https://forum.openoffice.org/en/forum... -

    1. 'System' proxy setting are depending on your OS which you do not precise …
edit flag offensive delete link more


Thanks for the hint about the configuration keys and that I may access them from python. This was just the information I needed. I shall write my own configuration-key-reader, due to unclear licensing of the code you referenced.

LittleMichael gravatar imageLittleMichael ( 2020-10-06 17:09:59 +0200 )edit

answered 2020-10-01 16:54:59 +0200

You can add access proxy in your script, look:


edit flag offensive delete link more


Nice! Thx elmau

LibreOfficiant gravatar imageLibreOfficiant ( 2020-10-02 12:14:07 +0200 )edit

Check the mark (✓) to the left of the answer that solves your question.

mauricio gravatar imagemauricio ( 2020-10-02 18:37:29 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-12-09 09:04:39 +0200

Seen: 137 times

Last updated: Oct 01 '20