Skip Menu |

This queue is for tickets about the WWW-Twitpic-Fetch CPAN distribution.

Report information
The Basics
Id: 71562
Status: resolved
Worked: 30 min
Priority: 0/
Queue: WWW-Twitpic-Fetch

People
Owner: TURUGINA [...] cpan.org
Requestors: gypark [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)



Hello, Thank you for your good module. Currently, however, list() method doesn't work well. I guess that Twitpic has changed their output format. I modify your code from: has _list_scraper => ( is => q/ro/, lazy => 1, default => sub { scraper { process 'div.profile-photo-img>a' => 'id[]' => '@href'; process 'div.profile-photo-img>a>img' => 'thumb[]' => '@src'; process 'div.profile-photo-message>div>p' => 'message[]' => 'TEXT'; }; }, ); to: (omit) process 'div.user-photo>a' => 'id[]' => '@href'; process 'div.user-photo>a>img' => 'thumb[]' => '@src'; process 'div.user-tweet>p.' => 'message[]' => 'TEXT'; (omit) And it seems to work. (But I'm not sure this is correct change) I'm so sorry that I'm not good at English. Sincerely, G.Y.Park from South Korea
To: G.Y.Park Thank you for your report. I checked scraping rules (including your change) and fixed them. the fixed version 0.07 will available on cpan soon later. thanks, turugina On 2011-10-10T02:05:46-04:00, gypark@gmail.com wrote: Show quoted text
> Hello, > > Thank you for your good module. > > Currently, however, list() method doesn't work well. > I guess that Twitpic has changed their output format. > > > I modify your code from: > > has _list_scraper => ( > is => q/ro/, > lazy => 1, > default => sub { > scraper { > process 'div.profile-photo-img>a' => 'id[]' => '@href'; > process 'div.profile-photo-img>a>img' => 'thumb[]' => '@src'; > process 'div.profile-photo-message>div>p' => 'message[]' => 'TEXT'; > }; > }, > ); > > > to: > (omit) > process 'div.user-photo>a' => 'id[]' => '@href'; > process 'div.user-photo>a>img' => 'thumb[]' => '@src'; > process 'div.user-tweet>p.' => 'message[]' => 'TEXT'; > (omit) > > And it seems to work. (But I'm not sure this is correct change) > > > I'm so sorry that I'm not good at English. > > Sincerely, > G.Y.Park from South Korea