yql

Yahoo YQL query with gFlags returns nothing

自闭症网瘾萝莉.ら 提交于 2019-12-10 17:46:28
问题 Using Yahoo YQL when I try to query using gFlags nothing returns. https://developer.yahoo.com/yql/console/?debug=true#h=select+*+from+geo.placefinder+where+text%3D%2237.416275%2C-122.025092%22+and+gflags%3D'R' Response: <?xml version="1.0" encoding="UTF-8"?> <query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2016-01-20T16:07:28Z" yahoo:lang="en-US"> <diagnostics> <publiclyCallable>true</publiclyCallable> <url execution-start-time="16" execution-stop-time=

jQuery dollar sign is undefined

人盡茶涼 提交于 2019-12-10 14:54:08
问题 In my quest to get historical information, i tried using the below code. Chrome debugger says that Uncaught ReferenceError: $ is not defined . Can you suggest a fix, i'm really stuck. I just need this to work on Chrome, and I am tapping into YQL and Yahoo API. here is the jsFiddle http://jsfiddle.net/pCK5q/1/ <html> <head> <script type='text/javascript' src='http://www.google.com/jsapi'></script> <script type='text/javascript'> google.load('visualization', '1', {'packages':['annotatedtimeline

How to fetch private data with YQL on Yahoo PHP5 Sdk yos-social-php5

邮差的信 提交于 2019-12-10 13:44:55
问题 I am using Yahoo PHP5 SDK and use it to fetch user contacts from table social.contacts which is a private data. On the example, from Delicious, it only shown fetching public data from YQL. May I know what parameter should I use to fetch private data with the class YahooYQLQuery and Execute()? I have tried to follow the example but following error message appear: YQL query failed with error: "Authentication Error. The table social.contacts requires a higher security level than is provided, you

Are the yahoo.finance related data api's change (YQL Console)?

泄露秘密 提交于 2019-12-10 13:11:59
问题 I am trying to use yql for yahoo financial data. I checked the Show Community Table on the YQL console to see the database under the Yahoo tag. I can see the tables under it but i am not getting results here it is as follows::: select * from yahoo.finance.analystestimate where symbol in ('YHOO') { "query": { "count": 1, "created": "2016-03-28T10:25:01Z", "lang": "en-US", "diagnostics": { "url": [ { "execution-start-time": "1", "execution-stop-time": "767", "execution-time": "766", "content":

How to process an object literal?

孤人 提交于 2019-12-10 10:44:49
问题 I am new to Javascript and trying to extract some text stored in an object. The object is defined as an object literal and is passed to a function in a Javascript script that calls the function. The script (and object) have this structure: foo({ "query": { "count": "2", "created": "2009-07-25T08:17:54Z", "lang": "en-US", }, "results": { "result": [ { "abstract": "<b>Pizza</b> Hut®. Order Online for Delivery or Carry-out. Fast & Easy.", "title": "<b>Pizza</b> Hut" }, { "abstract": "Official

YQL Problem - “The current table has been blocked”

陌路散爱 提交于 2019-12-09 07:17:58
问题 I'm new to YQL and am having some problems retrieving data. The query I'm trying to execute is: select * from yahoo.finance.historicaldata where symbol = "TW.L" and startDate = "01/01/2011" and endDate = "22/01/2011" I did manage to retrieve some information using a query like this through the YQL Console without a problem. Now whenever I try I get some XML back which includes the message: The current table 'yahoo.finance.historicaldata' has been blocked. It exceeded the allotted quotas of

YQL - No definition found for Table

送分小仙女□ 提交于 2019-12-08 12:23:26
问题 My code: import yql y = yql.Public() query = 'SELECT * FROM yahoo.finance.option_contracts WHERE symbol="SPY"' y.execute(query) Result: yql.YQLError: No definition found for Table yahoo.finance.option_contracts I know that the table exists because I can test the query at http://developer.yahoo.com/yql/console/ and it works. What am I missing? Update: I posted the url to the console but not the query I tried in the console. The query is now attached. http://goo.gl/mNXwC 回答1: Since the yahoo

Can I post data to php page using YQL?

北城以北 提交于 2019-12-08 09:39:17
问题 Can I post data to php page using YQL ? 回答1: In short, yes. With an <execute> block (docs), you can write JavaScript to make external HTTP requests: POSTs included. Have a read of one of Christian Heilmann's blog posts on the subject: Using YQL to read HTML from a document that requires POST data. A brief example of the JavaScript to make such a request might look like: // Prepare POST request var url = "http://www.postbin.org/1k2hsu7"; var body = "question=5579467&name=faressoft"; var req =

YQL sample query returns max 260 results

百般思念 提交于 2019-12-08 09:27:11
问题 I am following YQL sample query select * from local.search(500) where query="sushi" and location="san francisco, ca" but I get 260 max count instead of 500. I tried also to use limit 500 after 'where' and different keywords, always get maximum 260 results. How do you increase it? 回答1: The underlying API that the local.search table uses (Yahoo! Local Search Web Service) has restrictions on the number of results returned. The results parameter (the number of results "per page") has a maximum

Simple cross domain html request with jquery? Trying to use plug-in

给你一囗甜甜゛ 提交于 2019-12-08 09:01:30
问题 I'm trying to perform a simple html request using jquery with the code below. $.get('http://externalsite.com/status.html', function(data) { if (data == 1) { //do something } else { //do something else } }); I'm using the cross domain request plugin found at http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/ and I added the .js script to my html file, but what's next? The example uses a #container and a load from google, but I'm lost as to what I do for an html request. It