Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of
FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the
iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:
CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
-
jeremyn
- Posts: 2
- Joined: Tue Jul 08, 2008 1:35 pm
Post
by jeremyn » Tue Jul 08, 2008 1:42 pm
hi all, im new to this so please be nice
I am looking for a way to find phone numbers which appear on any web page thank then create a url form them. eg imagine that on a web page the phone number (03) 1234 1234 appeares the macro would find it and allow a user to click it and it would load a url being
http://10.0.0.1/blah.cfm?number=0312341234 is this possible ? I understand we would have to somehow work our the patterns for phone numbers, but I think we can do this
thanks in advance
-
mknoll1
- Posts: 174
- Joined: Fri Dec 23, 2005 4:14 pm
Post
by mknoll1 » Wed Jul 09, 2008 2:04 pm
Code: Select all
VERSION BUILD=5100314
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.w3schools.com/html/html_tables.asp
SIZE X=801 Y=602
WAIT SECONDS=3
EXTRACT POS=4 TYPE=TXT ATTR=<TD>*
WAIT SECONDS=3
URL GOTO=http://google.com/{{!EXTRACT}}
WAIT SECONDS=3
You just need to write the code to recognize phone numbers. For my money I would probably recommend using Java or another high level robust language to inspect an extract of the whole page and determine what is a phone number and then send that as a variable to Iopus for whatever you want.
Somethign like this:
Code: Select all
Public String InitiateIopus(somevariables){
run iopus macro
return ExtractedPage
}
public ArrayList FIndNumbers(String ExtractedPage){
Find numbers in the text
return ArrayList PhoneNumbers
}
public void runIopusWith Numbers(ArrayListPhoneNumbers){
for (number:PhoneNumbers){
doIopusStuff(number)
}
}