Modernvox Posted January 19, 2010 Share Posted January 19, 2010 Hi again Guyz, I am trying to find out about using a search box on a remote site without manually typing in a keyword. SO, if i wanted to find a piano for sale on 3 different classified sites, what would be the best method? There's a name for this function, right? Just need to know what it's called so I may google and learn it. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/188996-question-regarding-sifting-through-selected-remote-sites/ Share on other sites More sharing options...
oni-kun Posted January 19, 2010 Share Posted January 19, 2010 IT's called data scraping. If the classified pages (which most likely do) provided the results via GET/POST you can use get_file_contents or curl to get the data, then preg_replace with a pattern to get the resutls you're looking for. Quote Link to comment https://forums.phpfreaks.com/topic/188996-question-regarding-sifting-through-selected-remote-sites/#findComment-997868 Share on other sites More sharing options...
Modernvox Posted January 19, 2010 Author Share Posted January 19, 2010 IT's called data scraping. If the classified pages (which most likely do) provided the results via GET/POST you can use get_file_contents or curl to get the data, then preg_replace with a pattern to get the resutls you're looking for. Excellent, thanks oni Quote Link to comment https://forums.phpfreaks.com/topic/188996-question-regarding-sifting-through-selected-remote-sites/#findComment-997883 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.