I need help with reading data from web page. I wanted to do database of rates (forex). For example: whan price is (eur\usd) 1.4231 then 1.4230 then 1.4229 then 1.4230. I wnated to make text file and application (c\c++) write there those price.
In tex file:
1.4231
1.4230
1.4229
1.4230
every movement are in this file.
It is possible ??? I know how can I make text file and write on it. But I need get data from web page.

Recommended Answers

All 8 Replies

It's probably 10x easier in C# but it can be done.

libcurl is a popular library for fetching web pages.

Alternatively, just use the wget programme as part of a script to fetch the data, and then your C++ programme to operate on it.

commented: yep +15

It's probably 10x easier in C# but it can be done.

but how ?

That is much, much harder. Find a webpage where the values are plain text in the html source.

Steps to get data from a website
First, find the page where your data is located. ...
Copy and paste the URL from that page into Import.io, to create an extractor that will attempt to get the right data. ...
Click Go and Import.io will query the page and use machine learning to try to determine what data you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.