Comments (20)
Thanks @aaschmid. @ploth, let us know if it works! 😃
from dict.cc.py.
Still working here, what command do you call @ploth?
from dict.cc.py.
Ah, I see. Looks like we're using urllib2
to make the HTTP request to dict.cc [0]. It doesn't seem to know about proxy environment variables [1].
I think we have two reasonable approaches:
- Update the code to use
requests
; - Implement the proxy-switching logic based on the
HTTPS_PROXY
environment variable ourselves and use the stackoverflow solution.
I would lean towards approach 1, because it seems simpler and more standard. If you guys want to try and submit a PR, that would be great. Otherwise, I can do it a bit later today.
from dict.cc.py.
hi @ploth. Not sure if you solved it, but could it be that you're behind a proxy?
from dict.cc.py.
Yes I'm behind a proxy (company) but it stopped working 3 days ago. I don't know why it was working before.
from dict.cc.py.
Can you access https://www.dict.cc/ in your browser still? I assume so, so can you access it using curl
or wget
?
from dict.cc.py.
Can you access https://www.dict.cc/ in your browser still?
Yes
I assume so, so can you access it using curl or wget?
Yes
from dict.cc.py.
An using python
and requests
fails
echo -e "import requests\nprint(requests.get('https://dict.cc/'))" | python
???
from dict.cc.py.
@ploth another thing to try is to set the HTTPS_PROXY
environment variable with the proxy your company uses. For example:
$ HTTPS_PROXY=http://my_proxy:my_port dict.cc.py en de body
from dict.cc.py.
An using python and requests fails
echo -e "import requests\nprint(requests.get('https://dict.cc/'))" | python
???
$ echo -e "import requests\nprint(requests.get('https://dict.cc/'))" | python
<Response [200]>
@ploth another thing to try is to set the HTTPS_PROXY environment variable with the proxy your company uses.
http_proxy
and https_proxy
environment variables are already set.
from dict.cc.py.
wasn't aware that we haven't used requests
anyway but see #21 which does it not ;-)
from dict.cc.py.
It is working now. Thanks!
But it is strange that this doesn't work anymore 35aea3b
from dict.cc.py.
Don't get what you mean @ploth ?
from dict.cc.py.
Its missing those spaces for an unknown reason between the dots and the vocables.
body..............Körper
instead of
body .............. Körper
from dict.cc.py.
Ah ok, works for me using the latest master
, installing via makepkg -i
on Archlinux. How do you use it?
from dict.cc.py.
Installed from pip
from dict.cc.py.
thats the issue, pip does not have the latest version containing the wanted changes, see https://pypi.org/project/dict.cc.py/. The version in pip
is from October 2016...
from dict.cc.py.
But we want to have a newer version on pip
? I would maintain it.
from dict.cc.py.
@rbaron it is your repo, any thoughts?
from dict.cc.py.
I bumped the version to 3.0.0 and pushed it to PyPi: https://pypi.org/project/dict.cc.py/#history. Thanks for the inputs!
from dict.cc.py.
Related Issues (13)
- Non-ascii characters don't work HOT 2
- Show suggestions
- More robust HTML parsing HOT 5
- Configurable default languages HOT 2
- They limited the result set to 3 words HOT 2
- SSLError
- Unicode error on umlauts since colorized output
- Documentation for usage as code HOT 1
- Can you explain in more detail, how to install and use this on OS X? HOT 2
- python warning HOT 3
- Invalid syntax on python 3.5 when installed via pip HOT 2
- unable to store the result in a bash variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dict.cc.py.