[python crawler] Batch recognition of English in pdf, automatically translated into Chinese

Whether you are going to school or going to work, sometimes it is unavoidable to read English articles, especially when writing a graduation thesis. The more troublesome thing is to translate highly professional English pdf articles into Chinese. I remember when I was in school, I copied paragraph by paragraph, or Baidu translated words I didn’t know, which was very time-consuming. The previous article provided a method for batch recognition of Chinese and English in pdf. For details, see [python crawler] Batch recognition of English in pdf and automatic translation into Chinese . This article realizes automatic conversion of pdf from English to Chinese.


  

1. Import library

  
First import the required libraries. If some libraries have not been installed, you can use pip install to install them. The specific import library code is as follows:

import os 
import json
import time
import random
import pandas as pd
from captcha import * 
from datetime import da

Guess you like

Origin blog.csdn.net/qq_32532663/article/details/132653450