473,498 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Log In to Yahoo Finance from Form

2 New Member
Expand|Select|Wrap|Line Numbers
  1. Private Sub CommandButton2_Click()
  2.     Dim strPost As String
  3.     Dim objHTTP, replyTXT As String
  4.     Dim AuthenticationTicket As String
  5.     AuthenticationTicket = ""
  6.     Set objHTTP = CreateObject("Msxml2.ServerXMLHTTP")
  7.     strPost = "http://finance.yahoo.com/d/quotes.csv?s=^IXIC,^NSEI,Reliance.ns,SBIN.ns&f=sl1d1t1c1ohgv&e=.csv"
  8.  
  9.     'Get authentication ticket:
  10.     objHTTP.Open "GET", strPost, False
  11.     Call objHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
  12.     objHTTP.send ("login=****.com&passwd=******")
  13.     replyTXT = objHTTP.responseText
  14.     TextBox2 = replyTXT
  15. End Sub
Here I am getting stock data but not realtime.
I want to login to yahoo and get realtime stock data but I did't know how to parse cookies

- Use XmlHttp and send a GET request to the login page ("http://login.yahoo.com/config/login")
- This will return the session cookie that we extract and store
- Using the session cookie we POST the username and password to the processlogin page. now we are logged in. Then download through this url( "http://finance.yahoo.com/d/quotes.csv?s=^IXIC,^NSEI,Reliance.ns,SBIN.ns&f=sl1 d1t1c1ohgv&e=.csv")
Dec 8 '11 #1
0 1341

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4144
by: bryce21 | last post by:
I'm trying to write a script that logs into Yahoo Fantasy Football. Once logged in, I'll be able to grab stats and various other pieces of info about our league. The problem I'm having deals with...
6
14323
by: f | last post by:
I am writing an app in which I need to get the stock quote from Yahoo. Idealy, I will get a stream from Yahoo's web site and parse that as string and display the information (price, PE, volumn...)....
13
17809
by: dan roberts | last post by:
Folks, This is my first Python project so please bear with me. I need to download data from Yahoo Finance in CSV format. The symbols are provided in a text file, and the project details are...
4
3673
by: joe_public34 | last post by:
Hello all, I'm trying to write a script to log into Yahoo! (mail, groups, etc), but when I pass the full URL with all form elements via Python, I get a resutling 400 - Bad Request page. When I...
1
3583
by: Andrew | last post by:
Hello, friends, I am implementing web app security using asp.net 1.1, and I found the following source code from Yahoo! Mail login page: <form method="post"...
2
6812
by: James | last post by:
Is there a way to get a list of stock quotes from yahoo finance into you c# application? I looked on the yahoo finance page and cannot see a wsdl end point. Can somebody please point me in the...
0
1184
by: admin | last post by:
biz.yahoo.com/prnews/070219/sfm012a.html?.v=1 Microsoft Corp. today released Microsoft® SQL Server 2005 SP2, an update to its award-winning data management and analysis platform. Customers can...
0
1739
by: cmrodrig | last post by:
For a long time, I've been looking for a solution to this error. There are some reports to Yahoo support, but none could solve this problem. It happens when we try to open Java charts on Yahoo...
0
1235
by: =?Utf-8?B?Unlhbg==?= | last post by:
Dear Sir/Madam, When I try to login email account in Yahoo, the following message is received in the next tab. Affterwards, the next tab ask me to re-enter the login name and password, however,...
1
2928
by: lucky che | last post by:
i am new to curl .and i m trying to create create a script for my client to log into yahoo and click the confirmation link in emails. but i am stuck witht he login process only i made the code...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.