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";
In reply to Re^2: Substring matching attribute selector is not working in Scrappy module
by shivanisai
in thread Substring matching attribute selector is not working in Scrappy module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |