hi
i am trying to get a portion of a html page with curl. it returns the full page with html, CSS, JS. so it takes little bit long time.
is it possible to get a particular part of the html?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 13, 2007 1:57am
Subscribe [1]#1 / Dec 13, 2007 1:57am
hi
i am trying to get a portion of a html page with curl. it returns the full page with html, CSS, JS. so it takes little bit long time.
is it possible to get a particular part of the html?
#2 / Dec 13, 2007 3:56am
curl will always return the entire page
you then need to break it up yourself
years ago (6 or so) I used regular expressions to break up a page and extract some data
admittedly it was basically just stripping the body tags and getting everything in between but it is possible to do