ผลต่างระหว่างรุ่นของ "ผู้ใช้:Ans/script"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Ans (คุย | ส่วนร่วม)
+partial wget output {751092..786647}
Ans (คุย | ส่วนร่วม)
+partial wget output
บรรทัด 445:
*** output: <source lang=text>
https://www.thairath.co.th/content/379994 not shift 100 ; <title>errorเมนู</title>
</source>
** $ <source lang=bash>set -- https://www.thairath.co.th/content/37{9999..0000} ; while (( $# > 0 )) ; do echo "$1" | grep '00$' ; { wget -t1 -qO- "$1" || echo '<title>errorเมนู</title>' ; } | grep -m1 -i -o '<title>.*<.......' | grep -m1 -i -o '<title>.*เมนู[^<]*<.......' | perl -ple 'BEGIN{$u=pop@ARGV;$|=1}s?\A<title>.*error? not shift 100 ; $&?i or$e=1; END{exit$e} $_="$u $_"' -- "$1" || shift 99 ; shift ; done ; echo done</source>
*** output: <source lang=text>
https://www.thairath.co.th/content/379994 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379959 <title>เมนูทีวี 02/11/56</title>
https://www.thairath.co.th/content/379817 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379800
https://www.thairath.co.th/content/379713 <title>เมนูทีวี 01/11/56</title>
https://www.thairath.co.th/content/379611 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379607 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379600
https://www.thairath.co.th/content/379572 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379559 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379500
https://www.thairath.co.th/content/379472 <title>เมนูทีวี 31/10/56</title>
https://www.thairath.co.th/content/379335 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379333 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379328 not shift 100 ; <title>errorเมนู</title>
https://www.thairath.co.th/content/379300
https://www.thairath.co.th/content/379300 not shift 100 ; <title>errorเมนู</title>
</source>
** $ <source lang=bash></source>