当前位置:网站首页>On simple code crawling Youdao translation_ 0's problem (to be solved)
On simple code crawling Youdao translation_ 0's problem (to be solved)
2022-06-30 14:16:00 【Huaxi GG】
piu piu piu~~~
First blog
I don't know how to write
What Lao Jijiao wrote is almost the same as what he knew ~~
Spicy , To enter the body
# p14_2.py
import urllib.request
import urllib.parse
url = "http://fanyi.youdao.com/translate_0?smartresult=dict&smartresult=rule"
data = {}
data['type']='AUTO'
data['i']='i love FishC.com'
data['doctype']='json'
data['xmlVersion']='1.6'
data['ue']='UTF-8'
data['keyfrom']='fanyi.web'
data['typoResult']='true'
data=urllib.parse.urlencode(data).encode('utf-8')
response=urllib.request.urlopen(url,data)
html=response.read().decode('utf-8')
print(html)
This is the first reptile I wrote ( ok , Press Zero Basics python Copycat )
Run it
code 1
Tortoise and tortoise , What the hell is this
I used my intelligent brain to think for half an hour
Finally, I decided to go to Du Niang ~~
There is a blog written by brother Niu on the Internet ~~
Let's remove the beginning url in translate hinder _0
ok Go ahead
E:\360Downloads\ New text document .py\Scripts\python.exe C:/Users/MAIBENBEN/Desktop/ New text document .py
{"type":"EN2ZH_CN","errorCode":30,"elapsedTime":1,"translateResult":[[{"src":" Your request is from an illegal source , For commercial use, please pay attention to Youdao translation API Official website \u201C There is a way, a wise cloud \u201D: http:\/\/ai.youdao.com","tgt":" Your request is from an illegal source , For commercial use, please pay attention to Youdao translation API Official website \u201C There is a way, a wise cloud \u201D: http:\/\/ai.youdao.com"}]]}
Process finished with exit code 0
that The problem is coming.
_0 What role does it play here ?
I spent more than half an hour on Du Niang
Oh, my God –
Can't find
http://bbs.fishc.org/thread-86581-1-1.html
So I found this post ( ok , I also know it has been sinking for almost a year )
It says _0,BUT Did not say its usage
therefore It was finally decided Let's put this question aside ~~~
What Daniel knows I also looked out and explained ~
Later, when I have learned , I'm sure I can live up to this blog post ~~
边栏推荐
- 【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
- Initial attack and defense world Misc
- [the path of system analyst] Chapter V software engineering (software process improvement)
- Introduction to the renewal of substrate source code: the pallet alliance is incorporated into the main line,
- Three uses of golang underscores
- Cost forecast of PMP (BAC, EAC, etc)
- Google Earth Engine(GEE)——将字符串的转化为数字并且应用于时间搜索( ee.Date.fromYMD)
- Rpm2rpm packaging steps
- Go language for loop multivariable use
- Golang template (text/template)
猜你喜欢

提权扫描工具

【科学文献计量】外文文献及中文文献关键词的挖掘与可视化

QQ was stolen? The reason is
![[observation] as the intelligent industry accelerates, why should AI computing power take the lead?](/img/61/b446a616e86247507c27390505dc6b.jpg)
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?

Optimization of unit test efficiency: why test programs? What are the benefits of testing?
![[scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)](/img/70/8bf226964118efb324ca4d339df654.png)
[scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)

Unity animator parameter

QQ 居然被盗了?原因在这......

What is erdma as illustrated by Coptic cartoon?

步骤详解 | 助您轻松提交 Google Play 数据安全表单
随机推荐
Why can't the database table be written into data
This editor will open source soon!
[kubernetes series] k8s set mysql8 case insensitive
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?
How to take the first step in digital transformation
Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit
Comprehensively analyze the basic features and summary of free and paid SSH tools
提权扫描工具
go channel && select
Advanced usage of go language for loop break and continue
Jetpack compose for perfect screen fit
Embedded development: five C features that may no longer be prohibited
The first three passes of sqli Labs
可觀測,才可靠:雲上自動化運維CloudOps系列沙龍 第一彈
我想问一下招商证券怎么开户?通过链接办理股票开户安全吗
Step by step | help you easily submit Google play data security form
Pytoch viewing model parameter quantity and calculation quantity
Rpm2rpm packaging steps
numpy 创建空数组 data = np.empty(shape=[1, 64,64,3])
Why does the folder appear open in another program