Bat file to extract data from offline webpage saved as html / text file
- or -
Post a project like this2128
$$$
- Posted:
- Proposals: 4
- Remote
- #2043413
- Awarded
Description
Experience Level: Expert
Hi,
I need a bat file that can be launched as a program, so executable like an exe. But it must be a bat file :-)
It needs to extract 8 lines of data from a webpage that will be saved to file as either html or txt.
It then needs to save each of the 8 lines of data as its own individual text file.
I attach below a graphical demonstration of what I am doing.
The data is displayed in a area of the page called the Data Window.
The data is being produced by a script I have written in the chart...in this case that script is called "Trendline Trader 02"
This name will not always be the same as I have different scripts that I use to produce this data.
The outputs however (ie the names of the data) WILL always be the same.
So they will always be:
Trend
Sell
Buy
Priceline
Confirmation
LoBuy
HiSel
Timeline
The final one called 'Timeline' is produced by its own separate script called 'Timeline'.
So in the html it will be separated from the others by some extra lines of text.
So if the data looks like this:
Trend 1.0
Sell n/a
Buy 100
Priceline 150
Confirmation 3000
LoBuy 50
HiSel 250
Timeline 234478888999
then the bat file will write the following text files:
trend.txt - containing only the text 1.0
sell.txt - containing only the text n/a
buy.txt - containing only the text 100
priceline.txt - containing only the text 150
confirmation.txt - containing only the text 3000
lobuy.txt - containing only the text 50
hisel.txt - containing only the text 250
timeline.txt - containing only the text 234478888999
I need a bat file that can be launched as a program, so executable like an exe. But it must be a bat file :-)
It needs to extract 8 lines of data from a webpage that will be saved to file as either html or txt.
It then needs to save each of the 8 lines of data as its own individual text file.
I attach below a graphical demonstration of what I am doing.
The data is displayed in a area of the page called the Data Window.
The data is being produced by a script I have written in the chart...in this case that script is called "Trendline Trader 02"
This name will not always be the same as I have different scripts that I use to produce this data.
The outputs however (ie the names of the data) WILL always be the same.
So they will always be:
Trend
Sell
Buy
Priceline
Confirmation
LoBuy
HiSel
Timeline
The final one called 'Timeline' is produced by its own separate script called 'Timeline'.
So in the html it will be separated from the others by some extra lines of text.
So if the data looks like this:
Trend 1.0
Sell n/a
Buy 100
Priceline 150
Confirmation 3000
LoBuy 50
HiSel 250
Timeline 234478888999
then the bat file will write the following text files:
trend.txt - containing only the text 1.0
sell.txt - containing only the text n/a
buy.txt - containing only the text 100
priceline.txt - containing only the text 150
confirmation.txt - containing only the text 3000
lobuy.txt - containing only the text 50
hisel.txt - containing only the text 250
timeline.txt - containing only the text 234478888999
John F.
100% (23)Projects Completed
11
Freelancers worked with
10
Projects awarded
65%
Last project
11 Jun 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hello,
Can this be done with a different language than BAT? It will have the same functionality.
658739
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies