Use Python to write a translation tool! Then became the great God in the eyes of the learned brother!

Source: Internet
Author: User
Tags md5 encryption

1. Pre-reptile analysis

Because to realize the translation function of Youdao translation, it is necessary to find its interface, open the review element, go to the Network Listening window (NET), view API interface.

See how the salt and sign are generated by viewing the source code of the Web page to view the translated JS file.

    • View Web page source code find JS file

Find the JS file, then click on this file, jump to this source file, then select all the code, copy it down

2.Python using MD5 to encrypt strings

1. In the Youdao translation using MD5 encryption, the MD5 encryption is learned

3. Code manipulation based on python3.5

Implementing translation functions

Isn't it very simple ah! Get to go to the assembly force! Ha ha

Incoming group: 125240963 to get dozens of sets of PDFs Oh!

Use Python to write a translation tool! Then became the great God in the eyes of the learned brother!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.