Coder Social home page Coder Social logo

kokonut1128 / littledcrawler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ex860/littledcrawler

0.0 0.0 0.0 23 KB

The web crawler of HJ Dict. 滬江小 D 的字典爬蟲,輸出的 JSON 能夠與 Ankieasy 合作快速製卡

JavaScript 100.00%

littledcrawler's Introduction

littleDCrawler

littleDCrawler is a Japanese dictionary web crawler.
It crawls LittleD for Japanese word and OJAD for Japanese verb.
After finishing crawling, it exports JSON for Ankieasy to make card.

Usage

node littleD.js [type] 

Type

  • image: littleD.js will read the image folder, and embed the image file in into your Anki card.
  • python: littleD.js will read the input file of Ankieasy for input word information.

Output JSON Format

  • front_word (Japanese):
    • word:
      [sound:<AUDIO_PATH>]<WORD>
      <PART_OF_SPEECH>
      1. <MEANING_1_EXAMPLE_SENTENCE>
      (2. <MEANING_2_EXAMPLE_SENTENCE>)
      ...
      
    • verb:
      [sound:<JISHO_AUDIO_PATH>]<VERB_JISHO> // 辞書形
      [sound:<MASU_AUDIO_PATH>]<VERB_MASU>   // ます形
      [sound:<TE_AUDIO_PATH>]<VERB_TE>       // て形
      [sound:<NAI_AUDIO_PATH>]<VERB_NAI>     // ない形
      ([sound:<KANO_AUDIO_PATH>]<VERB_KANO>  // 可能形)
      [sound:<ISHI_AUDIO_PATH>]<VERB_ISHI>   // 意志形
      <PART_OF_SPEECH>
      1. <MEANING_1_EXAMPLE_SENTENCE>
      (2. <MEANING_2_EXAMPLE_SENTENCE>)
      ...
      
  • back_word (Chinese):
    <PART_OF_SPEECH>
    1. <MEANING_1>
    <MEANING_1_EXAMPLE_SENTENCE>
    (2. <MEANING_2>)
    (<MEANING_2_EXAMPLE_SENTENCE>)
    ...
    

if you can't install puppeteer, try this:

sudo npm install --unsafe-perm=true

littledcrawler's People

Contributors

ex860 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.