Giter VIP home page Giter VIP logo

englishwordtranslate's Introduction

单词自动查询

在学习英语时,为了方便自动进行单词的查询而写的一个程序。

可以将一个文件中的所有单词自动进行网页查询,获取到音标和释义,生成一个个单词词条存入另一个文件中。

运行方法

在 const.py 中设置好 单词的源文件路径 和 目标文件路径,即可读取源文件,并写入目标文件。

运行 enterpoint.py 即可。

读取单词文件的方式

此项目为按照一个单词一行的方式读取,可以在spiders/mySpider.py中的yield_word()函数中修改单词的产生方式

查询网页的方式

此项目从网易有道词典中进行在线自动查询,网页为 http://dict.youdao.com/w/eng/

若要修改查询页面,可以在const.py中修改。

爬取方式可以在mySpider.py中修改extract_...系列函数来修改提取单词名称、音标和释义的方式。

englishwordtranslate's People

Contributors

yubincloud avatar yooungjune avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.