Git Product home page Git Product logo

searchbaidubaike's Introduction

SearchBaidubaike 百度百科内容提取小程序

用来提取百度百科的词条内容

包括:词条概述、基本信息栏、正文文本。支持一词多义的多个义项分别提取。
暂不包括:词条图片、内链外链、参考资料、正文内的表格信息。

提取结果格式(php数组)

{
  {     //义项1
    'subtitle': '子标题',      //义项子标题,没有则初始化为'默认'
    'summary':                 //概述段落
    {
      '段落1的正文',
      '段落2的正文',
      ...
    },
    'basic':                  //基本信息栏
    {
      '项名1': '项内容1',
      '项名2': '项内容2',
      ...
    },
    'main':                   //正文
    {
      '一级目录标题1':
      {
        'content':
        {
          '段落1的正文',
          '段落2的正文',
          ...
        },
        'sub':              //这个一级目录之下的二级目录列表,假如没有二级目录,则这个元素为null
        {
          '二级目录标题1':
          {
            '段落1的正文',
            '段落2的正文',
            ...
          },
          '二级目录标题2': ...
        }
      },
      '一级目录标题2': ...
    },
  },
  {     //义项2
    ...
  },
  ...
}

searchbaidubaike's People

Contributors

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