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://www.codercto.com/soft/d/3690.html

Usability for the Web

Usability for the Web

Tom Brinck、Darren Gergle、Scott D. Wood / Morgan Kaufmann / 2001-10-15 / USD 65.95

Every stage in the design of a new web site is an opportunity to meet or miss deadlines and budgetary goals. Every stage is an opportunity to boost or undercut the site's usability. Thi......一起来看看 《Usability for the Web》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具