Comments (4)
for example:《财
from py-googletrans.
》has the same error. I think you can review special char list. :)
from py-googletrans.
Jsut for the memo here, the deobfuscated code for google translate token generator:
var a = "©×";
for (var result = [], counter = 0, i = 0; i < a.length; i++) {
var l = a.charCodeAt(i);
if (128 > l) {
result[counter++] = l
} else {
if (2048 > l) {
result[counter++] = l >> 6 | 192
} else {
if (55296 == (l & 64512) && i + 1 < a.length && 56320 == (a.charCodeAt(i + 1) & 64512)) {
l = 65536 + ((l & 1023) << 10) + (a.charCodeAt(++i) & 1023)
result[counter++] = l >> 18 | 240
result[counter++] = l >> 12 & 63 | 128
} else {
result[counter++] = l >> 12 | 224
result[counter++] = l >> 6 & 63 | 128
}
}
result[counter++] = l & 63 | 128
}
}
console.log(result);
from py-googletrans.
Solved this issue with a new release 2.1.2.
from py-googletrans.
Related Issues (20)
- Abandoned HOT 2
- AttributeError: 'NoneType' object has no attribute 'group' HOT 22
- TypeError: translate() takes no keyword arguments HOT 3
- httpx lib has too old version (with security vulnerability) HOT 3
- TypeError: the JSON object must be str, bytes or bytearray, not NoneType HOT 11
- TypeError: the JSON object must be str, bytes or bytearray, not NoneType HOT 3
- httpx library version dependency issue HOT 2
- why is the code not working, in this case ? HOT 2
- why it raising an error HOT 3
- result.extra_data['possible-mistakes'] returns error HOT 1
- when i run the demo code, raise a error as following: HOT 3
- googletrans conflict with python-telegram-bot because of httpx package HOT 7
- Delete this Post
- 29819f703c8013b1ecff718319c7b773b60ec5c6
- Incorrect Translattion
- Error when translating text HOT 1
- Missing 1 required positional argument: 'client' ERROR
- Dependancy error. when installing for Python 3.11.7 32BIT
- There is an error in translating "cat" into French HOT 1
- If you have httpx dependency relevant issues go to the below project to address your problem HOT 1
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 py-googletrans.