Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2011, 11:46 AM
bytec bytec is offline
Junior Member
 
Join Date: Sep 2011
Posts: 3
Default Extracting data from web page using a filter

Hi,

I have a task which extracts data from a web site table. This work fine but what I would like to do is extract only rows of data that meet a criteria.

example rows:
"EZY8664","15:55","LONDRES /GATWICK (LGW)","EASYJET AIRLINE CO. LTD.","N "
"EZY2224","16:05","LONDRES /LUTON (LTN)","EASYJET AIRLINE CO. LTD.","N "
"FR9072","16:10","MANCHESTER (MAN)","RYANAIR","N "
"IBE8906","16:15","IBIZA (IBZ)","IBERIA","N "

Task: extract all rows where the flight number contains "FR" (FR9072) 3rd row.

If someone could provide an example that would be great.

Many thanks in advance.

Dereck
Reply With Quote
  #2 (permalink)  
Old 09-28-2011, 03:34 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Bytec,

You can extract the table to the CSV file in the similar fashion that you are carrying on. After extracting data into the CSV file, you can use "Read from CSV/text" command.

For example:
1 Read From CSV file : 'C:\sample.csv' Delimiter: 'Comma' Header: 'No' Session: 'Default'
2 Start Loop " Each row in a CSV/Text file of Session: Default"
3 If $Filedata Column(1)$ Includes "FR" Then
4 Comment: Please enter the conditional commands here.
5 End If
6 End Loop

On line no. 4, you can put the conditional statement like: log the data in another csv/text file using "Log to file" command.

Thanks & Regards

Last edited by forumstaff; 09-28-2011 at 03:45 PM.
Reply With Quote
  #3 (permalink)  
Old 09-30-2011, 10:21 AM
bytec bytec is offline
Junior Member
 
Join Date: Sep 2011
Posts: 3
Default

Hi and many thanks for your fast response.

I have been trying to NOT come back to the forum before I gave it my all in solving the issue I have, but have failed.

The TASK text you provided works but the resulting CSV file is a little odd.

Example before removing the rows that do not contain "FR"

"http://www.aena-aeropuertos.es/csee/Satellite/infovuelos/en/Details.html?accion=detalle&company_code=FR&dia=20 110930&hora_prev=2011-09-30+10%3A30&ncia=FR&numBusqueda=FR906Z&nvuelo=906Z& ordenacionBack=hprevisto&originBack=ALC&originBusq ueda=ALC&strVuelo=FR906Z"
"http://www.aena-aeropuertos.es/csee/Satellite/infovuelos/en/Details.html?accion=detalle&company_code=AB&dia=20 110930&hora_prev=2011-09-30+17%3A25&ncia=AB&numBusqueda=AB7863&nvuelo=7863& ordenacionBack=hprevisto&originBack=ALC&originBusq ueda=ALC&strVuelo=AB7863"
"http://www.aena-aeropuertos.es/csee/Satellite/infovuelos/en/Details.html?accion=detalle&company_code=NLY&dia=2 0110930&hora_prev=2011-09-30+17%3A25&ncia=NLY&numBusqueda=NLY7863&nvuelo=786 3&ordenacionBack=hprevisto&originBack=ALC&originBu squeda=ALC&strVuelo=NLY7863"

You will notice that on the end of each row there is "strVuelo=" to a reference number. In this case its a flight number.

AFTER removing row that do not contain "FR" the reference number (flight number) is incomplete.

"http://www.aena-aeropuertos.es/csee/Satellite/infovuelos/en/Details.html?accion=detalle&company_code=FR&dia=20 110930&hora_prev=2011-09-30+10%3A30&ncia=FR&numBusqueda=FR906Z&nvuelo=906Z& ordenacionBack=hprevisto&originBack=ALC&originBusq ueda=ALC&strVuelo=FR"

Can you think of why this is happening.

I have attached the TASK which may be of help along with:
NaviGateURL.txt (before data)
FR_NaviGateURL.txt (after non FR data removal)

Again, many thanks in advance for any time you can give.

Regards

Dereck
Attached Files
File Type: atmn FR Test.atmn (10.9 KB, 2 views)
File Type: txt FR_NaviGateURL.txt (8.0 KB, 1 views)
File Type: txt NaviGateURL.txt (12.1 KB, 1 views)
Reply With Quote
  #4 (permalink)  
Old 10-03-2011, 04:39 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello bytec,

We have taken a look at your task and we want to have an online meeting with you so that we can try few things at your end. Please give us your contact details on support@automationanywhere.com and we will schedule an online meeting.

Let us know if that works for you.

Thanks & Regards
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 04:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved