• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 14 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A YQL (Yahoo Query Language) module for NodeJS

Build Status

node-yql

node-yql is a YQL client for node.js

What is YQL?

Yahoo! Query Language is an expressive SQL-like language that lets you query, filter, and join data across Web services. With YQL, apps run faster with fewer lines of code and a smaller network footprint.

Yahoo! and other websites across the Internet make much of their structured data available to developers, primarily through Web services. To access and query these services, developers traditionally endure the pain of locating the right URLs and documentation to access and query each Web service.

With YQL, developers can access and shape data across the Internet through one simple language, eliminating the need to learn how to call different APIs.

Example YQL Queries

  • SELECT title,abstract FROM search.web WHERE query="pizza";
  • SELECT * FROM weather.forecast WHERE location = 90066;
  • SELECT * FROM twitter.user.timeline WHERE id = 'yql';
  • SELECT * FROM flickr.photos.interestingness(20);

You may find more examples at the YQL console

Installing node-yql

$ npm install yql

Example

var YQL = require('yql');
var query = new YQL('SHOW TABLES');
query.exec(function (error, response) {
	// Do something with results (response.query.results)
});

You can also chain the methods:

YQL('SELECT * FROM weather.forecast WHERE (location = @zip)').setParam('zip', 94089).setConfig('ssl', true).exec(fn)

Documentation

Full documentation can be found at derek.github.com/node-yql

function YQL (string query [, object options])

  • query - A YQL query
  • options
    • ssl: A boolean true/false flag to enable HTTPS (default: false)
    • headers: Object of valid HTTP headers (default {})
    • env: Environment files (default: http://datatables.org/alltables.env)

Additional YQL Resources

More Repositories

1

Tweetanium

A 100% JavaScript Twitter client experiment using YUI & YQL
JavaScript
28
star
2

yui-benchmark

A toolkit to simplify JavaScript performance testing.
JavaScript
16
star
3

yql-executor

PHP
7
star
4

particle-windchime

Generates audio representations of particle collisions
Java
6
star
5

node-cornify

A Super Magical Nodejs Unicorn Module
JavaScript
6
star
6

tweenky

Tweenky is a javascript micro-blogging client
JavaScript
5
star
7

Downfall-Subtitle-Generator

A site to generate subtitles for the 'Downfall' meme
PHP
4
star
8

scrollview-sandbox

A sandbox for YUI ScrollView work
JavaScript
3
star
9

yui-twitter

A Twitter client for YUI3
JavaScript
3
star
10

embeditor

An embeddable Ace code editor
JavaScript
2
star
11

derek.github.com

My Github Pages repository
HTML
2
star
12

burt

Burt is a proof-of-concept for a "less is more" simple CSS pre-processor.
JavaScript
2
star
13

dupree

Dupree is a simple utility that was designed for a Twitter script to keep track of messages that had been read before. Useful for things that read from queues or feeds without the ability to 'write' back to the source as a message that has already been recieved before.
2
star
14

yuiconf2012-presentation

JavaScript
2
star
15

TweetBackup

A small script to backup your tweets
PHP
2
star
16

TweetFM

Tweet.fm = The missing link between Twitter & Last.fm
PHP
1
star
17

milo

A command-line tool for YUI development
JavaScript
1
star
18

Daffy

Derek's anti-framework framework
PHP
1
star
19

requirejs-yui-plugin

A RequireJS plugin for loading YUI modules.
1
star
20

yui-cornify

Add some unicorns to you YUI3 apps
1
star
21

tweetsearch

A command-line set of scripts that allows the ability to search Twitter and other "Tweet" services.
1
star