sloria / TextBlob

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
https://textblob.readthedocs.io/
MIT License
9.11k stars 1.13k forks source link

Requests error (HTTP Error 404: Not Found) #397

Closed Heun11 closed 2 years ago

Heun11 commented 3 years ago

Hello, I have this issue, it seems to be something with requests package and I don't know how to fix that, please help! (Image down bellow) Thanks! issue

k-amin07 commented 3 years ago

Just had the exact same issue. It appears that this URL in file textblob/translate.py is no longer valid. Of course this isnt the complete URL that textblob uses and appends some parameters to it but it appears to me that google has changed something with the API.

BZ2020 commented 3 years ago

Have the same issue in the past 2 days. I thought I had to set up my credit card with google API so google can let my IP to hit the API but that wasnt the case. I was also using textblob 0.15 and thought upgrad could solve the issue. But textblob 0.17 also has the same error. stuck for now.....

hinink commented 3 years ago

Same problem 395

Ransomk commented 3 years ago

Yes getting the same here on my end. Keep getting Http 404

mzeidhassan commented 3 years ago

same here as well

Maeril commented 3 years ago

Same here. :(

AchuAswin28 commented 3 years ago

Use Googletrans to translate the text

import googletrans from googletrans import Translator

translater = Translator() value = translater.translate(value) print(value.src)

To detect the language we can use this...

397

Happy Coding!!!!!

Heun11 commented 3 years ago

@AchuAswin28 I need translate package that gives me error when you set from_language and you put word from different language! TextBlob do that as well, but now I have this issue. But thanks for help :)

shubheshswain91 commented 2 years ago

Change the URL to below in this installed path /usr/local/lib/python3.7/dist-packages/textblob/translate.py url = "http://translate.google.com/translate_a/t?client=te&format=html&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&dt=at&ie=UTF-8&oe=UTF-8&otf=2&ssel=0&tsel=0&kc=1"

It will work.

sloria commented 2 years ago

fixed by https://github.com/sloria/TextBlob/pull/398

brianSERP-Ai commented 2 years ago

I'm having the same issue with translate not working and the above fix is not working either.