Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for macOS http proxy #34

Open
coolyrat opened this issue Aug 25, 2021 · 3 comments
Open

add support for macOS http proxy #34

coolyrat opened this issue Aug 25, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@coolyrat
Copy link

Very useful workflow! It would be great if the workflow supports proxy settings.

image

@wrjlewis wrjlewis added the help wanted Extra attention is needed label Aug 25, 2021
@wrjlewis
Copy link
Owner

Thanks for the comment!

If anyone has any examples of workflows supporting a proxy, please let me know. I don't know how this would be implemented or how it works in Alfred.

@coolyrat
Copy link
Author

Is there any chance to add one more variable for the proxies? I am not familiar with python 😭 After some research I found this

image

conn.request("POST", "/api/v3/search",

@wrjlewis wrjlewis added enhancement New feature or request and removed help wanted Extra attention is needed labels Mar 25, 2022
@Huweicai
Copy link

Huweicai commented Dec 11, 2022

I tired it follow this stackoverflow answer , it works well.

Modify 3 such codes in notion.py

conn = http.client.HTTPSConnection("www.notion.so")

TO

conn = http.client.HTTPSConnection("127.0.0.1",8888) // proxy host, proxy port
conn.set_tunnel("www.notion.so")

Maybe we can add a workflow optional variable to set proxy address and read it in code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants