Hi all,
I want to get number on the web and then compare it to check if number changed or not with another number which I input on " input dialog activity ".
But seem I created not correct , so it run not exactly.
How to compare number in this case ???
Pls suggest me a solution.
Thanks so much!
rahatadi
(Aditya Rahatekar)
January 19, 2019, 8:59am
2
@trunghai
U did right…
Just add following expression before if condition.
Span=Regex.Match(span,“\d+”).Value
Regards,
Aditya
Hi rahatadi.
Thanks you but I don’t know how to do.
I want to get Value from the web with " Number " format… and then compare with another number I want.
Could you explain to me?
Thanks you!
rahatadi
(Aditya Rahatekar)
January 19, 2019, 11:08am
4
@trunghai
Create variable called DUMMY of type int
Use assign stage
Span=Regex.Match(span,“\d+”).Value
DUMMY =cint(Span)
Hi Aditya.
I do not correct ?
Pls check and support me about this case.
Thanks you so much!
indra
(Indra)
January 21, 2019, 2:28am
6
@trunghai Import namespace called System.Text.Regular Expression
Hi Indra !
I have installed but seem it has problem as below.
indra
(Indra)
January 21, 2019, 3:13am
8
@trunghai Can you post the error message
Hi Indra.
It not show message… when I click into " Install " and then " save " it run and not show any message.
And then, I come to manage packages, check this package received information as previous post.
Thanks you!
P/S : Do you have any example for my topic ?
I want to scrap " price " for any " product " on the web. After I want to compare this " price " with another price to know it lower or bigger.
Thanks you so much!
indra
(Indra)
January 21, 2019, 3:32am
10
@trunghai I think still you dint import namespace
Go to Imports Panel l Which is beside your Variables panel …
Type System.Text.RegularExpressions and import this
Refer below link
[Regex is not declared - #4 by aksh1yadav ]
Hi Indra san.
Sorry I’m new.
How to import it as below ?
indra
(Indra)
January 21, 2019, 3:42am
12
@trunghai just click on system.text.regularexpression
Hi Indra.
Could you pls support me to do one example ?
I want to scrap a price from one model on webpage : " Mua tủ lạnh giá rẻ, tủ lạnh inverter trả góp 0%, giao hàng nhanh ", and then compare " price " with another price which inputted into inputbox ?
Thanks you so much!
@indra I have clicked but it not show any message.
rahatadi
(Aditya Rahatekar)
January 21, 2019, 3:51am
15
@trunghai
COMPARE_VALUES.xaml (6.7 KB)
please check this …!
Hi Indra .
Thanks you so much for your strong support.
This is good example for me to learn.
But I want to scrap the price from one product on the webpage Mua tủ lạnh giá rẻ, tủ lạnh inverter trả góp 0%, giao hàng nhanh
And then compare it with any Price ( number format ) which I input into Inputbox to check it lower or bigger the price on webpage.
Thanks you so much!
rahatadi
(Aditya Rahatekar)
January 21, 2019, 4:14am
17
@trunghai
have you done with data scrapping ?
i believe that you have data table with you which has all data retarded to price ?
i have provided you a simple example to do this,
please check and let me know what else is missing
Regards
aditya
hi Indra .
I have got text from the webpage and show it into message box.
I want to compare this price with another price ( number format ) which I input into InputBox or Output DataTable.
Could you pls guide to me step by step for this ? Or do a example for me ?
Mua tủ lạnh tiết kiệm điện (inverter) giá rẻ chính hãng quà tặng hấp dẫn, trả góp 0%. Giao hàng tận nơi, lắp đặt nhanh chóng, cùng nhiều khuyến mãi khác tại Điện máy Chợ Lớn. Xem ngay!
Thanks you!
rahatadi
(Aditya Rahatekar)
January 21, 2019, 4:33am
19
@trunghai
could you please upload your xaml file (code file)?
regards,
aditya
Hi Indra.
Pls kindly check .
I don’t know how to do continuously.
I want to check this price with another price. You can input a Input dialog to compare with price which I have scrapped on the web as attach.
Check Data on The Web.xaml (10.4 KB)