python-weather
python-weather copied to clipboard
weather.current.sky_text languages
Is it possible to change the sky_text
language output?
I was thinking that maybe is a feature of the API the library is utilizing and could be a great improvement if not yet implemented.
As for now I am translating to italian the result with "googletrans":
from googletrans import Translator
...
translator = Translator()
translator.translate(weather.current.sky_text, dest="it", src="en").text
A built in way to get directly the translated words would be much better
Is it possible to change the
sky_text
language output? I was thinking that maybe is a feature of the API the library is utilizing and could be a great improvement if not yet implemented.As for now I am translating to italian the result with "googletrans":
from googletrans import Translator ... translator = Translator() translator.translate(weather.current.sky_text, dest="it", src="en").text
A built in way to get directly the translated words would be much better
Not work for me :(
Not work for me :(
At least explain what the problem is... If it's something due to googletrans package you should open an issue on that repo
@Magnarks that kind of problem should work by reinstalling googletrans with pip install googletrans==4.0.0-rc1
feel free to read this stackoverflow post: https://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group
Not work for me :(
At least explain what the problem is... If it's something due to googletrans package you should open an issue on that repo
@Magnarks that kind of problem should work by reinstalling googletrans with
pip install googletrans==4.0.0-rc1
feel free to read this stackoverflow post: https://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group
Ok i try install again googletrans but i have the same problem, is this
Traceback (most recent call last):
File "c:\Users\diego\Documents\Python\AsistentedeVoz.py", line 188, in
It may be related to this issue: https://github.com/ssut/py-googletrans/issues/278
This is something you should ask in the relative GitHub repo! You'll have replies from people that work on that package and you would help them to make it better.