2 ms·
Improvement Using states for each "SERP-type" increases speed when processing catenated SERPs almost 6-fold. Example SERP: Yandex. /*`````````yandex```
by 1vuio0pswjnm7 3y ago
Improvement
Using states for each "SERP-type" increases speed when processing catenated SERPs almost 6-fold.
Example SERP: Yandex.
/*`````````yandex``````````*/
<MODE13>accessKey=.{3}[ ]tabindex=.{3}[ ]href=\"[^\"]+|.{8}link\"[ ]tabindex=.{3}[ ]href=\"[^\"]+ {
yandex_url++;
CDp8iULPuCinsert(13);
for(x=33;x<yyleng;x++){putc(yytext[x],yyout);if(yytext[x]==39)putc(39,stdout);};
fwrite("','",1,3,yyout);
}
<MODE13>OrganicTextContentSpan\"> yandex_desc++;jmp YANDEX_DESC;
<YANDEX_DESC><\/span> yandex_desc=0;fwrite("');\n",1,4,yyout);jmp 0;
<YANDEX_DESC><[^>]+>
<YANDEX_DESC>. putc(yytext[0],yyout);
013.sh to test:
#!/bin/sh
read x;
echo TWVGHkppk6Q6cODqP7Kqquery:\""$x first=${1-1}"\"
echo TWVGHkppk6Q6cODqP7Kqdate:\"$(epoch)\"
echo TWVGHkppk6Q6cODqP7Kqmode:\"13\"
x=$(echo "$x"|sed 's/ /+/g;s/++/+/g');
curl -si04A "" "https://yandex.com/search/?text=$x&p=${1-1}&family=0"
echo this is a test|013.sh > 1.htm
yy084 < 1.htm|sq test.db
- 1vuio0pswjnm7 3y agoCorrection: s/jmp 0/jmp MODE13/