captcha image not getting scraped from App1-Comp1-Site#2.
-
S. Shehzed
Test code below works. If this works then why doesn't the script's way work? It uses the same exact pattern.
<?php $str = file_get_contents('http://www.wordorigins.org/index.php/forums/member/register/'); $pattern = '(<img[a-z\s]+src=")((http://)?(www.)?([a-z0-9-]+)([\.a-z]+/)(images/captchas/)([a-z0-9\.]+)(\.jpg))'; $pattern = '#'.$pattern.'#i'; $result = preg_match($pattern, $str, $match); var_dump($result); var_dump($match); ?> -
S. Shehzed
- State changed from new to resolvedandnewticket
- Assigned user set to S. Shehzed
RESOLVED: scraping with isearch gets weird source code. Changes code from how IE would view source. So back to getting page source by saving page as htm file on computer and getting file contents.
This creates a new ticket problem at #32 captcha image not appearing in in_memory.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.