in reply to Re: Substring matching attribute selector is not working in Scrappy module
in thread Substring matching attribute selector is not working in Scrappy module
now it is compiled.still the selector is not working. I couldn't able to get Image url which contains value foo.gifuse Scrappy; $html=' <h1>ARCO ELETRÔNICO - MUSICAL - D63 - TINY LOVE</h1> </a>Este arco é colorido, flexível e versátil. Pode ser +colocado para diversão do Bebê no carrinho e no bebê conforto.</p> <img src="http://www.somesite.com/site/_images/image1.gif" /> <br /><img src="http://www.somesite.com/site/_images/foo +.gif" >dsfsdfs</img><br /> '; my $parser = Scrappy::Scraper::Parser->new; $parser->html($html); $parser->select('img[src*="foo.gif"]'); my $image_url = $parser->data->[0]->{src}; print "\nimage:$image_url\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Substring matching attribute selector is not working in Scrappy module
by Anonymous Monk on May 18, 2011 at 11:29 UTC |