Pagination would make it a bit more complex, but to get just the first page's quotes is similarly easy:
open :F html :r http://www.brainyquote.com/quotes/keywords/gratitude.h +tml ; my $i = 0 ; for //a[@title='view quote'] echo :s {++$i} '. ' (.) ;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In reply to Re^3: regex to get random quote
by choroba
in thread regex to get random quote
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |