saritha
(saritha)
June 20, 2020, 3:13pm
1
Hi ,
Trying to remove line spaces in between messages. want only one line space in between messages.
Can anyone help me please.
I need it like
1 large granny smith apple
(one line space)
1 pink lady apple.
(one line Space)
1 cup(280gms)
.
.
Thank u.
Srini84
(Srinivas Kadamati)
June 20, 2020, 5:26pm
2
@saritha
Share your sample text file
Thanks
saritha
(saritha)
June 20, 2020, 5:36pm
3
I’m trying to get full text of (ingredients) from this website
ppr
(Peter Preuss)
June 20, 2020, 7:26pm
4
@saritha
it look likes you used screen scrapping for ingredients block.
As an alternate you can use Data Scrapping will get following result:
empty rows can be filtred out afterwards
following Extract Config was used (quick test not fine tuned)
<extract>
<column exact="1" name="Column1" attr="text">
<webctrl tag="li"/>
<webctrl tag="div"/>
</column>
</extract>
saritha
(saritha)
June 20, 2020, 8:23pm
5
I used GET FULL TEXT activity
.
ppr
(Peter Preuss)
June 20, 2020, 8:29pm
6
@saritha
ok. However as shown with data scraping you will get the data more direct and more in the format you did expect. Let us know if you need mor help on this
Hi @saritha
Try this code
outputTxtVar = string.Join(Environment.NewLine ,ingredients.Split(ControlChars.CrLf.ToCharArray(),StringSplitOptions.RemoveEmptyEntries).Select(Function(s) s.Trim).Where(Function(s) Not String.IsNullOrWhiteSpace(s.Trim)).ToArray)
1 Like
balupad14
(Balamurugan)
June 21, 2020, 8:16am
8
Hi @saritha
After the datascrap. Can you try this one.
Here is an activity called “Remove Empty LIne” from BalaReva.EasyText that i have attached it here.
Hi,
I have developed a package to make easy the text file format utilities.
It is a package to handle the automation for Txt,Csv,Xml ,Json and TextFormat File
This package has many activities to handle the text format files like Txt,Csv,Xml ,Json and TextFormat File. The activities are to handle insert,update,delete and other operation.
TextScope - It is a scope activity.It keeps only the file path. It doesn’t keep the text file resource.
DeleteAt - Delete the line at specific line
Find &…
Note :
Can you share the output in a text file ?
Thank you
Balamurugan.s
1 Like
saritha
(saritha)
June 21, 2020, 11:37am
9
Hi ,
I will try adding the package. Thank u so much.
Im trying to print it in message box.
Thank you for providing solution, it worked,
Thank you Aanandraj