SlideShare una empresa de Scribd logo
1 de 32
YQL Case Study

Allan Huang @ esobi Inc.
Agenda


YQL




PlaceFinder API




Case Study - Stock Quote
Case Study - City WOEID

Flickr API






Case Study - City WOEID
Case Study - City Photo
Case Study - Area Photo
Case Study - Photo Information
Case Study - Photo EXIF
Continued Agenda


Instagram API





Case Study - Area Photo
Case Study - Popular Photo
Case Study - Recent Tagged Photo
Case Study - Location Search
Yahoo Query Language
YQL - Yahoo Query Language
Flickr

Yahoo
BOSS Geo
YQL in HTTP

s
es
c
Ac

Yahoo
Weather

Web
Service

Access

XML | JSON

CSV
HTML

Ac
ce
ss

JSON
XML

Yahoo
Finance

Instagram
RSS
YQL Usage Information






For commercial purposes
At least 6 months notice on YDN
Uptime target of over 99.5%
Register an API Key with Yahoo
YQL Console
YQL Statements
YQL Console
Case Study - Stock Quote






USE "http://www.datatables.org/yahoo/finance/yahoo.finance.quotes.xml" as
stock_quotes;
SELECT Symbol, Name, Open, DaysHigh, DaysLow, LastTradePriceOnly,
ChangeinPercent FROM stock_quotes where symbol in ("^DJI", "^IXIC", "^SPX",
"^SOX", "^N225", "^HSI", "^TWII", "YHOO", "AAPL", "GOOG", "IBM", "MSFT", "TSM",
"2330.TW", "2353.TW")
Familiar with JSON / XML
Dow Jones Index Issue


Why can't I download data from the Dow
Jones Index?






Yahoo! is no longer licensed to provide data
downloads for the Dow Jones Index.
Dow Jones Industrial Average [^DJI] data can
only be viewed on the screen.
Yahoo! Help
Yahoo Finance Lookup Symbol
Yahoo Stock Lookup Service





http://autoc.finance.yahoo.com/aut
oc?
query=Apple&callback=YAHOO.Fi
nance.SymbolSuggest.ssCallback
Familiar with JSON format
Symbol Lookup from Yahoo
Finance
PlaceFinder API
PlaceFinder API Usage Information






Yahoo BOSS Geo service
 RESTful Geocoding Web service
Currently supports 10 languages
 en, fr, de, it, es, pt, nl, zh (tw / cn), ja, ko
WOEID
 Where On Earth IDentifier
Case Study – City WOEID



SELECT city, woeid FROM geo.placefinder where text= "Taipei"
Familiar with JSON / XML
Flickr API
Flickr API Usage Information


Before using Flickr API


Get you API Key






Get api_key

Put your app in the Flickr App Garden

Limitations






Your application must stay under 3600 queries
per hour across the whole key
Your application can cache API results and
images for up to 24 hours
Flickr API Explorer
Case Study – City WOEID




SELECT woe_name, woeid FROM flickr.places where
api_key="???" and query="Taipei" and place_type_id="7"
Familiar with JSON / XML
Case Study - City Photo




SELECT * FROM flickr.photos.search(50) where api_key="???" and
tags="view, scenery, scene, landscape" and content_type="1" and
sort="interestingness-desc" and weoid="2306179"
Familiar with JSON / XML
Case Study - Area Photo




SELECT * FROM flickr.photos.search(50) where api_key="???" and
tags="view, scenery, scene, landscape" and content_type="1" and
sort="interestingness-desc" and lat="25.0259641" and lon="121.5293006"
and radius="32"
Familiar with JSON / XML
Case Study - Photo Information




SELECT * FROM flickr.photos.info where api_key="???" and
photo_id="3855224197" and secret="4ac2a27833"
Familiar with JSON / XML
Case Study - Photo EXIF




SELECT * FROM flickr.photos.exif where api_key="???" and
photo_id="3855224197"
Familiar with JSON / XML
Flickr Photo URL


Photo Source URL


http://farm{farm-id}.staticflickr.com/{server-id}/{id}_{secret}.jpg
http://farm{farm-id}.staticflickr.com/{server-id}/
{id}_{secret}_[mstzb].jpg



Size Suffixes








s, q, t, m, n, z, b
except -, c, o

Individual Photo URL



http://www.flickr.com/photos/{owner-id}/{photo-id}
http://flickr.com/photo.gne?id={photo-id}
Instagram API
Instagram API Usage Information


Before using Instagran API


Register Your Application




Get client_id and client_secret

Limitations




Your application are limited to 5000 requests per
hour per client_id or access_token
Apigee API Console For Instagram
Case Study – Area Photo




SELECT data.link, data.images, data.caption FROM json where
url='https://api.instagram.com/v1/media/search?
lat=25.02597094&lng=121.5292736&distance=5000&client_id=???'
Familiar with JSON
Case Study – Popular Photo




SELECT data.link, data.images, data.caption FROM json where
url='https://api.instagram.com/v1/media/popular?client_id=???'
Familiar with JSON
Case Study – Recent Tagged Photo




SELECT data.link, data.images, data.caption FROM json where
url='https://api.instagram.com/v1/tags/spring/media/recent?client_id=???'
Familiar with JSON
Case Study – Location Search




SELECT data FROM json where
url='https://api.instagram.com/v1/locations/search?
lat=25.02597094&lng=121.5292736&distance=5000&client_id=???'
Familiar with JSON
Instagram Photo URL


Photo Source URL


images.standard_resolution.url attribute




images.low_resolution.url attribute




width 306px, height 306px

images.thumbnail.url attribute




width 612px, height 612px

width 150px, height 150px

Individual Photo URL


data.link attribute
Reference








YQL Usage Information
 Register an API Key with Yahoo
Yahoo BOSS - Pricing
 PlaceFinder FAQ
What is Flickr App Garden?
 Flickr Developer Guide
 Flickr Place Find
 Flickr Photo Search
 Flickr Photo GetInfo
 Flickr Photo GetExif
 Photo Source URLs
Instagram Developer Documentation
 Instagram Authentication
 Instagram API Endpoints
Q&A

Más contenido relacionado

Similar a YQL Case Study

Programming With Amazon, Google, And E Bay
Programming With Amazon, Google, And E BayProgramming With Amazon, Google, And E Bay
Programming With Amazon, Google, And E BayPhi Jack
 
Query the web with YQL
Query the web with YQLQuery the web with YQL
Query the web with YQLramace
 
Yahoo! Query Language - Hadoop India Summit 2011
Yahoo! Query Language - Hadoop India Summit 2011Yahoo! Query Language - Hadoop India Summit 2011
Yahoo! Query Language - Hadoop India Summit 2011Saurabh Sahni
 
Building a real time big data analytics platform with solr
Building a real time big data analytics platform with solrBuilding a real time big data analytics platform with solr
Building a real time big data analytics platform with solrTrey Grainger
 
Building a real time, big data analytics platform with solr
Building a real time, big data analytics platform with solrBuilding a real time, big data analytics platform with solr
Building a real time, big data analytics platform with solrlucenerevolution
 
Mashups & Data Visualizations: The New Breed of Web Applications
Mashups & Data Visualizations: The New Breed of Web ApplicationsMashups & Data Visualizations: The New Breed of Web Applications
Mashups & Data Visualizations: The New Breed of Web ApplicationsDarlene Fichter
 
Boss hack u-iit-madras-2012
Boss hack u-iit-madras-2012Boss hack u-iit-madras-2012
Boss hack u-iit-madras-2012discoversudhir
 
Alfresco 5.2 REST API
Alfresco 5.2 REST APIAlfresco 5.2 REST API
Alfresco 5.2 REST APIJ V
 
Better Contextual Suggestions by Applying Domain Knowledge
Better Contextual Suggestions by Applying Domain KnowledgeBetter Contextual Suggestions by Applying Domain Knowledge
Better Contextual Suggestions by Applying Domain KnowledgeArjen de Vries
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaEdureka!
 
Open Hack London - Introduction to YQL
Open Hack London - Introduction to YQLOpen Hack London - Introduction to YQL
Open Hack London - Introduction to YQLChristian Heilmann
 
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOURBuilding a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOURTerminalfour
 
Data analysis using hive ql & tableau
Data analysis using hive ql & tableauData analysis using hive ql & tableau
Data analysis using hive ql & tableaupkale1708
 
Participating in the Web of Data
Participating in the Web of DataParticipating in the Web of Data
Participating in the Web of DataChristian Heilmann
 
Building Awesome APIs in Grails
Building Awesome APIs in GrailsBuilding Awesome APIs in Grails
Building Awesome APIs in Grailsclatimer
 
Designing a beautiful REST json api
Designing a beautiful REST json apiDesigning a beautiful REST json api
Designing a beautiful REST json api0x07de
 
YQL Publicis Hackday
YQL Publicis HackdayYQL Publicis Hackday
YQL Publicis HackdayPaul Donnelly
 
Yahoo BOSS Presentation London Open Hack Day Talk Boss
Yahoo BOSS Presentation London Open Hack Day Talk   BossYahoo BOSS Presentation London Open Hack Day Talk   Boss
Yahoo BOSS Presentation London Open Hack Day Talk BossKorben00
 

Similar a YQL Case Study (20)

YQL - HackU IIT Madras 2012
YQL - HackU IIT Madras 2012YQL - HackU IIT Madras 2012
YQL - HackU IIT Madras 2012
 
Programming With Amazon, Google, And E Bay
Programming With Amazon, Google, And E BayProgramming With Amazon, Google, And E Bay
Programming With Amazon, Google, And E Bay
 
Query the web with YQL
Query the web with YQLQuery the web with YQL
Query the web with YQL
 
Yahoo! Query Language - Hadoop India Summit 2011
Yahoo! Query Language - Hadoop India Summit 2011Yahoo! Query Language - Hadoop India Summit 2011
Yahoo! Query Language - Hadoop India Summit 2011
 
Building a real time big data analytics platform with solr
Building a real time big data analytics platform with solrBuilding a real time big data analytics platform with solr
Building a real time big data analytics platform with solr
 
Building a real time, big data analytics platform with solr
Building a real time, big data analytics platform with solrBuilding a real time, big data analytics platform with solr
Building a real time, big data analytics platform with solr
 
Yql with geo
Yql with geoYql with geo
Yql with geo
 
Mashups & Data Visualizations: The New Breed of Web Applications
Mashups & Data Visualizations: The New Breed of Web ApplicationsMashups & Data Visualizations: The New Breed of Web Applications
Mashups & Data Visualizations: The New Breed of Web Applications
 
Boss hack u-iit-madras-2012
Boss hack u-iit-madras-2012Boss hack u-iit-madras-2012
Boss hack u-iit-madras-2012
 
Alfresco 5.2 REST API
Alfresco 5.2 REST APIAlfresco 5.2 REST API
Alfresco 5.2 REST API
 
Better Contextual Suggestions by Applying Domain Knowledge
Better Contextual Suggestions by Applying Domain KnowledgeBetter Contextual Suggestions by Applying Domain Knowledge
Better Contextual Suggestions by Applying Domain Knowledge
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | Edureka
 
Open Hack London - Introduction to YQL
Open Hack London - Introduction to YQLOpen Hack London - Introduction to YQL
Open Hack London - Introduction to YQL
 
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOURBuilding a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
Building a research portal: Vidatum & NUIG - t44u - TERMINALFOUR
 
Data analysis using hive ql & tableau
Data analysis using hive ql & tableauData analysis using hive ql & tableau
Data analysis using hive ql & tableau
 
Participating in the Web of Data
Participating in the Web of DataParticipating in the Web of Data
Participating in the Web of Data
 
Building Awesome APIs in Grails
Building Awesome APIs in GrailsBuilding Awesome APIs in Grails
Building Awesome APIs in Grails
 
Designing a beautiful REST json api
Designing a beautiful REST json apiDesigning a beautiful REST json api
Designing a beautiful REST json api
 
YQL Publicis Hackday
YQL Publicis HackdayYQL Publicis Hackday
YQL Publicis Hackday
 
Yahoo BOSS Presentation London Open Hack Day Talk Boss
Yahoo BOSS Presentation London Open Hack Day Talk   BossYahoo BOSS Presentation London Open Hack Day Talk   Boss
Yahoo BOSS Presentation London Open Hack Day Talk Boss
 

Más de Allan Huang

Concurrency in Java
Concurrency in  JavaConcurrency in  Java
Concurrency in JavaAllan Huang
 
Build, logging, and unit test tools
Build, logging, and unit test toolsBuild, logging, and unit test tools
Build, logging, and unit test toolsAllan Huang
 
Java JSON Parser Comparison
Java JSON Parser ComparisonJava JSON Parser Comparison
Java JSON Parser ComparisonAllan Huang
 
Netty 4-based RPC System Development
Netty 4-based RPC System DevelopmentNetty 4-based RPC System Development
Netty 4-based RPC System DevelopmentAllan Huang
 
eSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureeSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureAllan Huang
 
Java New Evolution
Java New EvolutionJava New Evolution
Java New EvolutionAllan Huang
 
Tomcat New Evolution
Tomcat New EvolutionTomcat New Evolution
Tomcat New EvolutionAllan Huang
 
JQuery New Evolution
JQuery New EvolutionJQuery New Evolution
JQuery New EvolutionAllan Huang
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignAllan Huang
 
Boilerpipe Integration And Improvement
Boilerpipe Integration And ImprovementBoilerpipe Integration And Improvement
Boilerpipe Integration And ImprovementAllan Huang
 
Build Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGapBuild Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGapAllan Huang
 
HTML5 Multithreading
HTML5 MultithreadingHTML5 Multithreading
HTML5 MultithreadingAllan Huang
 
HTML5 Offline Web Application
HTML5 Offline Web ApplicationHTML5 Offline Web Application
HTML5 Offline Web ApplicationAllan Huang
 
HTML5 Data Storage
HTML5 Data StorageHTML5 Data Storage
HTML5 Data StorageAllan Huang
 
Java Script Patterns
Java Script PatternsJava Script Patterns
Java Script PatternsAllan Huang
 
Weighted feed recommand
Weighted feed recommandWeighted feed recommand
Weighted feed recommandAllan Huang
 
eSobi Site Initiation
eSobi Site InitiationeSobi Site Initiation
eSobi Site InitiationAllan Huang
 
Architecture of eSobi club based on J2EE
Architecture of eSobi club based on J2EEArchitecture of eSobi club based on J2EE
Architecture of eSobi club based on J2EEAllan Huang
 

Más de Allan Huang (20)

Concurrency in Java
Concurrency in  JavaConcurrency in  Java
Concurrency in Java
 
Build, logging, and unit test tools
Build, logging, and unit test toolsBuild, logging, and unit test tools
Build, logging, and unit test tools
 
Drools
DroolsDrools
Drools
 
Java JSON Parser Comparison
Java JSON Parser ComparisonJava JSON Parser Comparison
Java JSON Parser Comparison
 
Netty 4-based RPC System Development
Netty 4-based RPC System DevelopmentNetty 4-based RPC System Development
Netty 4-based RPC System Development
 
eSobi Website Multilayered Architecture
eSobi Website Multilayered ArchitectureeSobi Website Multilayered Architecture
eSobi Website Multilayered Architecture
 
Java New Evolution
Java New EvolutionJava New Evolution
Java New Evolution
 
Tomcat New Evolution
Tomcat New EvolutionTomcat New Evolution
Tomcat New Evolution
 
JQuery New Evolution
JQuery New EvolutionJQuery New Evolution
JQuery New Evolution
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Boilerpipe Integration And Improvement
Boilerpipe Integration And ImprovementBoilerpipe Integration And Improvement
Boilerpipe Integration And Improvement
 
Build Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGapBuild Cross-Platform Mobile Application with PhoneGap
Build Cross-Platform Mobile Application with PhoneGap
 
HTML5 Multithreading
HTML5 MultithreadingHTML5 Multithreading
HTML5 Multithreading
 
HTML5 Offline Web Application
HTML5 Offline Web ApplicationHTML5 Offline Web Application
HTML5 Offline Web Application
 
HTML5 Data Storage
HTML5 Data StorageHTML5 Data Storage
HTML5 Data Storage
 
Java Script Patterns
Java Script PatternsJava Script Patterns
Java Script Patterns
 
Weighted feed recommand
Weighted feed recommandWeighted feed recommand
Weighted feed recommand
 
Web Crawler
Web CrawlerWeb Crawler
Web Crawler
 
eSobi Site Initiation
eSobi Site InitiationeSobi Site Initiation
eSobi Site Initiation
 
Architecture of eSobi club based on J2EE
Architecture of eSobi club based on J2EEArchitecture of eSobi club based on J2EE
Architecture of eSobi club based on J2EE
 

Último

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 

Último (20)

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 

YQL Case Study

  • 1. YQL Case Study Allan Huang @ esobi Inc.
  • 2. Agenda  YQL   PlaceFinder API   Case Study - Stock Quote Case Study - City WOEID Flickr API      Case Study - City WOEID Case Study - City Photo Case Study - Area Photo Case Study - Photo Information Case Study - Photo EXIF
  • 3. Continued Agenda  Instagram API     Case Study - Area Photo Case Study - Popular Photo Case Study - Recent Tagged Photo Case Study - Location Search
  • 5. YQL - Yahoo Query Language Flickr Yahoo BOSS Geo YQL in HTTP s es c Ac Yahoo Weather Web Service Access XML | JSON CSV HTML Ac ce ss JSON XML Yahoo Finance Instagram RSS
  • 6. YQL Usage Information      For commercial purposes At least 6 months notice on YDN Uptime target of over 99.5% Register an API Key with Yahoo YQL Console
  • 9. Case Study - Stock Quote    USE "http://www.datatables.org/yahoo/finance/yahoo.finance.quotes.xml" as stock_quotes; SELECT Symbol, Name, Open, DaysHigh, DaysLow, LastTradePriceOnly, ChangeinPercent FROM stock_quotes where symbol in ("^DJI", "^IXIC", "^SPX", "^SOX", "^N225", "^HSI", "^TWII", "YHOO", "AAPL", "GOOG", "IBM", "MSFT", "TSM", "2330.TW", "2353.TW") Familiar with JSON / XML
  • 10. Dow Jones Index Issue  Why can't I download data from the Dow Jones Index?    Yahoo! is no longer licensed to provide data downloads for the Dow Jones Index. Dow Jones Industrial Average [^DJI] data can only be viewed on the screen. Yahoo! Help
  • 12. Yahoo Stock Lookup Service    http://autoc.finance.yahoo.com/aut oc? query=Apple&callback=YAHOO.Fi nance.SymbolSuggest.ssCallback Familiar with JSON format Symbol Lookup from Yahoo Finance
  • 14. PlaceFinder API Usage Information    Yahoo BOSS Geo service  RESTful Geocoding Web service Currently supports 10 languages  en, fr, de, it, es, pt, nl, zh (tw / cn), ja, ko WOEID  Where On Earth IDentifier
  • 15. Case Study – City WOEID   SELECT city, woeid FROM geo.placefinder where text= "Taipei" Familiar with JSON / XML
  • 17. Flickr API Usage Information  Before using Flickr API  Get you API Key    Get api_key Put your app in the Flickr App Garden Limitations    Your application must stay under 3600 queries per hour across the whole key Your application can cache API results and images for up to 24 hours Flickr API Explorer
  • 18. Case Study – City WOEID   SELECT woe_name, woeid FROM flickr.places where api_key="???" and query="Taipei" and place_type_id="7" Familiar with JSON / XML
  • 19. Case Study - City Photo   SELECT * FROM flickr.photos.search(50) where api_key="???" and tags="view, scenery, scene, landscape" and content_type="1" and sort="interestingness-desc" and weoid="2306179" Familiar with JSON / XML
  • 20. Case Study - Area Photo   SELECT * FROM flickr.photos.search(50) where api_key="???" and tags="view, scenery, scene, landscape" and content_type="1" and sort="interestingness-desc" and lat="25.0259641" and lon="121.5293006" and radius="32" Familiar with JSON / XML
  • 21. Case Study - Photo Information   SELECT * FROM flickr.photos.info where api_key="???" and photo_id="3855224197" and secret="4ac2a27833" Familiar with JSON / XML
  • 22. Case Study - Photo EXIF   SELECT * FROM flickr.photos.exif where api_key="???" and photo_id="3855224197" Familiar with JSON / XML
  • 23. Flickr Photo URL  Photo Source URL  http://farm{farm-id}.staticflickr.com/{server-id}/{id}_{secret}.jpg http://farm{farm-id}.staticflickr.com/{server-id}/ {id}_{secret}_[mstzb].jpg  Size Suffixes     s, q, t, m, n, z, b except -, c, o Individual Photo URL   http://www.flickr.com/photos/{owner-id}/{photo-id} http://flickr.com/photo.gne?id={photo-id}
  • 25. Instagram API Usage Information  Before using Instagran API  Register Your Application   Get client_id and client_secret Limitations   Your application are limited to 5000 requests per hour per client_id or access_token Apigee API Console For Instagram
  • 26. Case Study – Area Photo   SELECT data.link, data.images, data.caption FROM json where url='https://api.instagram.com/v1/media/search? lat=25.02597094&lng=121.5292736&distance=5000&client_id=???' Familiar with JSON
  • 27. Case Study – Popular Photo   SELECT data.link, data.images, data.caption FROM json where url='https://api.instagram.com/v1/media/popular?client_id=???' Familiar with JSON
  • 28. Case Study – Recent Tagged Photo   SELECT data.link, data.images, data.caption FROM json where url='https://api.instagram.com/v1/tags/spring/media/recent?client_id=???' Familiar with JSON
  • 29. Case Study – Location Search   SELECT data FROM json where url='https://api.instagram.com/v1/locations/search? lat=25.02597094&lng=121.5292736&distance=5000&client_id=???' Familiar with JSON
  • 30. Instagram Photo URL  Photo Source URL  images.standard_resolution.url attribute   images.low_resolution.url attribute   width 306px, height 306px images.thumbnail.url attribute   width 612px, height 612px width 150px, height 150px Individual Photo URL  data.link attribute
  • 31. Reference     YQL Usage Information  Register an API Key with Yahoo Yahoo BOSS - Pricing  PlaceFinder FAQ What is Flickr App Garden?  Flickr Developer Guide  Flickr Place Find  Flickr Photo Search  Flickr Photo GetInfo  Flickr Photo GetExif  Photo Source URLs Instagram Developer Documentation  Instagram Authentication  Instagram API Endpoints
  • 32. Q&A