Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] screen scraping with firefox - best practices?
#5
I couldn't get the code to work.

I modded the help example from a.GetChildObjects and got it work but I don't understand how the search works - what parts does it search?.

Here's my code:

Code:
Copy      Help
get all links in web page in Firefox
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x804)
Acc a.Find(w "DOCUMENT" "" "" 0x3010 2)
ARRAY(Acc) c; int i
a.GetChildObjects(c -1 "LINK" "*gintaras*" "" 1)
for i 0 c.len
    out c[i].Value

Now, how would I find links that are formatted with h2 tags, or a certain color or style, etc? Is that possible? Thanks.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)