Web 文档查询服务器 noodle

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-16 09:29:38

软件介绍

noodle 是一个 Node.js 服务器和模块,客户端可用来从 Web 文档中查询数据。

功能:

  • 跨域文档查询 (html, json, xml, atom, rss feeds)

  • 服务器支持通过 JSONP 和 JSON POST 查询

  • 支持单个请求多查询

  • 可访问查询服务器的 headers

  • 运行 POST 到文档

  • 内存中的缓存

示例代码:

var query = {
      url: 'http://google.com/search?q=javascript',
      type: 'html',
      selector: 'h3.r a',
      extract: 'text'
    },
    request;

request = 'http://dharmafly.noodle-example.jit.su/?q=' +
          encodeURIComponent(JSON.stringify(query)) +
          '&callback=?';

jQuery.getJSON(request, function (data) {
  console.log(data);
  demoElement.innerHTML = '<pre>' + 
      JSON.stringify(data, null, 4) +
      '</pre>';
});

本文地址:https://codercto.com/soft/d/3690.html

The Art and Science of Java

The Art and Science of Java

Eric Roberts / Addison-Wesley / 2007-3-1 / USD 121.60

In The Art and Science of Java, Stanford professor and well-known leader in CS Education Eric Roberts emphasizes the student-friendly exposition that led to the success of The Art and Science of C. By......一起来看看 《The Art and Science of Java》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具