Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 1.83
by jcl
Today at 16:24
Unfreed in -diag
by 3run
Today at 10:30
About STRING* and char
by 20BN
Today at 09:40
I need help
by evangelos
Today at 02:37
Draw stuff from other thread
by Superku
Yesterday at 22:00
Optimize Stop with multi Asset strategy
by Dalla
Yesterday at 21:48
cloth ?
by 3run
Yesterday at 20:48
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
17 registered (FirasTaji, AndrewAMD, Cerve, 3run, easyX, alibaba, jenGs, 4 invisible), 483 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
FirasTaji, zentrader, Fenry, DJ_Algo, tang
18005 Registered Users
Topic Options
Rate This Topic
#473470 - 07/10/18 22:06 screen scraping upcoming earnings date
SBGuy Offline

Registered: 05/27/18
Posts: 35
I'm a little rusty with string parsing. Hope one of gurus can help. I'm trying to scrape the upcoming earnings date from a Yahoo Finance quote page and it's not working.

See code below and sample of the text snipet I'm trying to parse.


void main()
    string eDate[50];
    string Content = http_transfer("",0);
    sscanf(Content,"<span data-reactid="102">%s<",eDate);


...<span data-reactid="100">Earnings Date</span></td><td class="Ta(end) Fw(b) Lh(14px)" data-test="EARNINGS_DATE-value" data-reactid="101"><span data-reactid="102">Jul 31, 2018</span>...

#473480 - 07/12/18 23:46 Re: screen scraping upcoming earnings date [Re: SBGuy]
SBGuy Offline

Registered: 05/27/18
Posts: 35
after a couple days of slogging here is a solution, if anyone is interested.

void main()
	string Content = http_transfer("",0);
	string s = strstr(strstr(Content," data-reactid="102">"),">");

	var EarningsDate = wdatef("%b %d, %Y",strtok(s+1,"<"));




Edited by SBGuy (07/12/18 23:47)


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)