Does anyone know what type of software/script/program I could use to check prices off of a website? I'm looking to monitor price changes. Thanks in advance.
You use PHP to scrape the html of a page, then REGEX to get the values you require, then CRON to make the script run every day.
ASP, ASP.NET, PHP, PERL, etc... there are tons of languages that might do the job for you. Of course, as live-cms said I'd suggest PHP because is easy to learn (with some practice and willing to learn of course) and it's free.
It's not as simple as downloading a software/script. At the very least you'll need to know how to create a suitable REGEX expression. You could find a PHP sample to do the scraping, but the REGEX varies depending on the website you want to get the data from.
Alright, so my best bet is to contact a programming agency on this one. Thanks for the information, I appreciate it.
The REGEX is only 1 line long, so hopefully you find a good programmer who won't overcharge for it. The PHP is copy and paste and the REGEX is 1 line, although that 1 line may take 15 minutes to code; REGEX can be rather complicated sometimes.
Could REGEX work on sites that use drop down selection menus with multiple options? Example is: Male Shoes and Size 10.5, both have to be selected and then the price appears
Here's an example of the PHP and REGEX, the REGEX would need to be modified. (The REGEX is the preg_match_all part.) function file_get_contents_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch); return $data; } $results = file_get_contents_curl("http://www.domain.com/index.html"); preg_match_all('/<td>([A-Za-z0-9 ]+)<\/td>/', $results, $matches); $total = count($matches[1]); $x = 0; while ($x < $total){ echo $matches[1][$x]."<br />\n"; $x += 1; } Code (markup): Yes, REGEX could be used on a dropdown unless it gets the values dynamically with AJAX. REGEX searches static code, like a search engine spider does.