Because this website has this in the DOM:
href="main.php?g2_itemId=3809"><IMG alt
I happily parse
main.php?g2_itemId=3809
with
(?<=href\=\").*(?=\"\>\<IMG alt)
which leads me to:
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-1;10-}
this way i have all the links. Only I don't of course.
http://mywebsite.com/page/ only appears with the first match. The other matches are left on their own, as main.php?g2_itemId=xxxx
I'd rather a more elegant solution than the only one i can think of right now, which is:
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-1-}
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-2-}
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-3-}
adding all that into the macro. What if I have a hundred links. This is clearly not practical. What would you do? thanks
href="main.php?g2_itemId=3809"><IMG alt
I happily parse
main.php?g2_itemId=3809
with
(?<=href\=\").*(?=\"\>\<IMG alt)
which leads me to:
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-1;10-}
this way i have all the links. Only I don't of course.
http://mywebsite.com/page/ only appears with the first match. The other matches are left on their own, as main.php?g2_itemId=xxxx
I'd rather a more elegant solution than the only one i can think of right now, which is:
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-1-}
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-2-}
http://mywebsite.com/page/{-RegExp.RegExp-|-{-FieldData.FieldData-|-scrape run-|-Dom text-}-|-(?<=href\=\").*(?=\"\>\<IMG alt)-|-3-}
adding all that into the macro. What if I have a hundred links. This is clearly not practical. What would you do? thanks