Yahoo! Developer Network Blog
« Previous | Main | Next »
August 25, 2009
Tutorial: Turning a web site into a widget with YQL
YQL is a very powerful way to use several APIs without going through the pains of authenticating for each and every one of them. It is also a terribly easy way to take any content you find on the web and turn it into something you can easily re-style.
Take this widget for example. It gets its data from this TV jokes website and uses only a few lines of JavaScript for the conversion. The steps are:
- Find out the site structure.
- Get a clever XPATH to where you want to go.
- Use YQL to get the data from the third-party site.
- Write a DOM script to convert it back to HTML
Learn how to do this yourself in my detailed step-by-step tutorial on how to scrape HTML with YQL.
Chris Heilmann (@codepo8)
Yahoo Developer Network
Posted at August 25, 2009 5:08 AM | Permalink
Comments
Post a comment
Comment Policy: We encourage comments and look forward to hearing from you. Please note that Yahoo! may, in our sole discretion, remove comments if they are off topic, inappropriate, or otherwise violate our Terms of Service. Fields marked with asterisk '*' are required.
Subscribe
Recent Blog Articles
view all
YQL Open Table for Google Buzz now live
Tue, 09 Feb 2010
INSERT INTO twitter.status ...
Mon, 08 Feb 2010
Announcing the Yahoo! Brasil Open Hack Day 2010, 20-21 March
Mon, 08 Feb 2010
Marketing hacks, linchpins, and tech women of valor
Sun, 07 Feb 2010
Yahoo! India invites you to join the first India Hadoop Summit
Thu, 04 Feb 2010
Recent Links
Appcelerator Titanium + Yahoo YQL on Vimeo
Mon, 08 Feb 2010
Tue, 02 Feb 2010
PhoneGap | Cross platform mobile framework
Sat, 30 Jan 2010
Web developers can rule the iPad - O'Reilly Radar
Sat, 30 Jan 2010
rc3.org - Is the iPad the harbinger of doom for personal computing?
Thu, 28 Jan 2010
Archives
2010
2009
2008
2007
2006
2005
Recent Readers


