Giter VIP home page Giter VIP logo

Comments (10)

bpschuck avatar bpschuck commented on June 2, 2024

The Yahoo_JSON module is working and does not need this.

from finance-quote.

ka-patel avatar ka-patel commented on June 2, 2024

I have updated module that retrieves this data for future proofing it in case there is value in it.

from finance-quote.

bpschuck avatar bpschuck commented on June 2, 2024

@ka-patel
Can you share the Yahoo_JSON.pm module you updated to fetch the cookies and crumbs?
Thank you.

from finance-quote.

ka-patel avatar ka-patel commented on June 2, 2024

from finance-quote.

bpschuck avatar bpschuck commented on June 2, 2024

@ka-patel

Thank you, I can access it. I didn't recall seeing there was a login with Yahoo username and password needed. Adding more environment variables will be problematic to some. I was hoping (and thought) that the required cookies and crumbs could be retrieved easily. This is something I'm going to spend a little time investigating.

Thanks again.

from finance-quote.

ka-patel avatar ka-patel commented on June 2, 2024

from finance-quote.

bpschuck avatar bpschuck commented on June 2, 2024

Yahoo login portion of the code (lines 105 to 113) can be ripped out from what is there without impacting retrieving of the cookie and the associated crumb as login into Yahoo is NOT required to obtain both…

Returns the same 401 code we are currently experiencing with the v1.59 release version.

from finance-quote.

ka-patel avatar ka-patel commented on June 2, 2024

from finance-quote.

bpschuck avatar bpschuck commented on June 2, 2024

As stated in the other issue, please use a fresh clone of the repository.
Please remove the use of threads, no need to add a feature no one has asked for.

This can lead to confusion. I'm not sure why you just don't use $ua for the user agent. After the get of the login URL, it's not used anymore.

my $cookie_jar = HTTP::CookieJar::LWP->new;
my $browser = LWP::UserAgent->new(
    cookie_jar        => $cookie_jar,
    agent             => $browser,
);

Thanks again.

from finance-quote.

ka-patel avatar ka-patel commented on June 2, 2024

from finance-quote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.