Skip to content

Commit a041281

Browse files
author
Christian Dumas
committed
Work done together in person
1 parent 6b17ded commit a041281

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

Accessing_Yahoo_Finance_CSV.rkt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#lang racket
2+
3+
(require csv-reading)
4+
(require net/url)
5+
6+
(print "Enter the stock symbol with double quotes around it")
7+
8+
(define stksymbol (read))
9+
10+
(define stkurl (string-append "http://download.finance.yahoo.com/d/quotes.csv?s=" stksymbol "&f=abo"))
11+
12+
(define myurl (string->url stkurl))
13+
(define myport (get-pure-port myurl))
14+
(display-pure-port myport)

Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ We will be successful if we are given responses at the appropriate times. Becaus
3636
### First Milestone (Sun Apr 9)
3737
We will be able to access stock values and print them in Racket. We will also be able to send text messages from Racket.
3838

39+
On time we were able to access stock values and also are almost able to send text messages.
40+
There is a login procedure with Google that isn't built in to Racket's SMTP methods.
41+
3942
### Second Milestone (Sun Apr 16)
4043
We will be able to send stock values, and all objects will be designed. Our command interpreter will be complete at this time as well.
4144

STMP_First_Attempt.rkt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#lang racket
2+
3+
(require net/smtp)
4+
5+
(smtp-send-message "smtp.gmail.com"
6+
"kshitijkarke@gmail.com"
7+
'("7742765067@vtext.com")
8+
"Heyo"
9+
'("Hello Christian")
10+
#:port-no 587
11+
#:auth-user "kshitijkarke@gmail.com")

0 commit comments

Comments
 (0)