graham23s Posted June 24, 2008 Share Posted June 24, 2008 Hi Guys, I have been messing about with the curl functions and am quite impressed with the easiness of using curl, im writing a tiny search engine, but is there a way using curl to actually read the web page code? i.e toi get the information between the sites <title> tags for example? or would i need to use curl then another way to get the information? thanks guys Graham Quote Link to comment Share on other sites More sharing options...
nashruddin Posted June 24, 2008 Share Posted June 24, 2008 Once you have fetched the page contents, use regular expression to extract its data. eg: <TITLE>,<META>,etc. See my tutorial on how to do this: http://www.nashruddin.com/parsing-tags-from-html-page.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.