Open GoogleCodeExporter opened 8 years ago
Sorry if I'm to clumsy in getting this stuff out, feel free to
suggest better practice.
Regards,
Dallas E. Legan II
legan@acm.org / aw585@lafn.org / http://www.lafn.org/~aw585/index.html
--
Patch to fix video search (for Googlevideosearch.pm):
16c16
< $browser->get('http://video.google.com/videoadvancedsearch');
---
> $browser->get('http://www.google.com/videohp');
25a26,30
>
> # this seems like an easy way to reuse whatever defaults the basic
search uses - d.e.l.
> $browser->get( $browser->base() . '&num=100' ) ;
> # Google allows amounts of 10, 20, 30, 50, 100
>
33c38,41
< $browser->find_all_links(text_regex => qr/.+/, url_regex =>
qr/\/url/);
---
> $browser->find_all_links(text_regex => qr/[:print:]+/,
url_regex => qr/\/url/);
>
> for my $i ( reverse 0..$#links )
> { splice @links, $i, 1 if $links[$i]{name} =~ /[[:^ascii:]]/ }
--
Patch to max out number of search results (for get_flash_videos):
203c203
< if (my @results = FlashVideo::Search->search($search, 10, 20)) {
---
> if (my @results = FlashVideo::Search->search($search, 100, 200)) {
Original comment by dallas.l...@gmail.com
on 11 Jan 2014 at 9:25
Attachments:
Attached should be a .sh script to apply 3 patches to the Debian
installation of get-flash-videos.
These impliment my current best fix for the broken search function.
They also impliment -F (--first) and -P (--page) parameters
to the command line to display the the 'first' <n> (out of 100 results)
of the hits for a page, and to display the <m> page (1 page being 100 results).
For example
.... -P 3 -F 30 .....
would display the first 30 results of the 3rd page of results
(results 201-230).
I've tried to keep the case indifference for other command line settings.
(These 2 conflicted with -f and -p).
It will default to displaying all results for the first page of search results.
Also documented in the help listing is '--' for end of parameters
and start of search or URLs.
Regards, Dallas E. Legan II / legan@acm.org / aw585@lafn.org
http://isthereanotherquestion.blogspot.com
************************************************************************
"Tekeli-li! Tekeli-li!"
- "At the Mountains of Madness", H.P. Lovecraft
Original comment by dallas.l...@gmail.com
on 22 Jan 2014 at 9:04
Attachments:
Original issue reported on code.google.com by
dallas.l...@gmail.com
on 11 Jan 2014 at 8:50