Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 120526
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: abhijit86k [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug and Fix: Yahoo Finance JSON Broken
Date: Mon, 6 Mar 2017 09:23:43 -0600
To: bug-Finance-Quote [...] rt.cpan.org
From: Abhijit Kshirsagar <abhijit86k [...] gmail.com>
Some time ago a noticed that Yahoo's JSON requests for indian stocks are failing - the response has the string "Not a valid parameter" Instead of the required JSON string. Setting the user agent string to a mobile browser fixes fixes this issue - I tries with the UA string for a Motorola moto G. 1. Is there any issue with 'faking' the user-agent in this manner? 2. Should such a patch be pushed to the yahoo-json module? 3. Does anyone know if Yahoo terms now prohibit use of the JSON fetch? Abhijit