473,563 Members | 2,709 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.c om/d/quotes.csv?s=^I XIC,^NSEI,Relia nce.ns,SBIN.ns& f=sl1d1t1c1ohgv &e=.csv")
Dec 8 '11 #1
0 1354

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

Similar topics

2
4155
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 actually logging in programatically. I've been using Snoopy to help with the user agent side of things and it seems to work well. I can...
6
14331
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...). What class should I use? If you use "http://finance.yahoo.com/d/quotes.csv?s=YHOO&f=sl1d1t1c1ohgv&e=.csv" as URL in HttpConnection, you will...
13
17819
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 included below. Does anyone have some sample code that I could adapt? Many thanks in advance, dan
4
3689
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 just plop the full URL into a browser, it works perfectly. Is there something I need to specify in python to submit the correct info (headers, user...
1
3590
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" action="https://login.yahoo.com/config/login?" autocomplete="off" name="login_form"> <input type="hidden" name=".tries" value="1"> <input type="hidden" name=".src" value="ym">...
2
6827
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 right direction? James
0
1192
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 now take advantage of enhancements in the familiar and easy-to-use Windows Vista operating system and 2007 Microsoft Office system to easily connect...
0
1745
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 Finance. I receive the following message, in IE7: Line:13 Char:118 Error:'style' is null or not an object
0
1244
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, the same error is also received. "If you are seeing this page, your browser settings prevent you from automatically redirecting to a new URL....
1
2938
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 below . but still i cant make it work. the problem is yahoo is implementing a captcha challange for this kind of automated headers. do you have any idea...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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 we have to send another system
0
923
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.