Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

captcha image not getting scraped from App1-Comp1-Site#2.

#30

see title.

Reported by S. Shehzed · November 28th, 2010 @ 05:42 PM

State: resolvedandnewticket
Milestone: v0.20
Assigned to: S. Shehzed S. Shehzed

Activity

  1. S. Shehzed
    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);
    
    ?>
    

    November 28th, 2010 @ 11:45 PM

  2. S. Shehzed
    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.

    November 29th, 2010 @ 03:41 AM

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.