mercuree / html-telegraph-poster

Python html to telegra.ph poster (telegram article service)
MIT License
100 stars 31 forks source link

Proxy. #14

Open eurealty opened 3 years ago

eurealty commented 3 years ago

Hello. Could you add the ability to work through a proxy? Best regards.

mercuree commented 3 years ago

You know, there are too much work for the refactoring, I don't know how to make it correctly and not to break an existing api. But you have two options:

t = TelegraphPoster(use_api=True, request=r)

eurealty commented 3 years ago

I tried it, but it doesn't work for me. Most likely it's my bad hands) But without "import requests" the code doesn't work, and when I import "requests", it sends everything from any specified proxy (for example: 1.1.1.1:1111), which means sending through proxies doesn't work.