Lurker News

Comments (269) 71 threads

Earlier comments
born-jre#
yes more specialized search engines :D
1vuio0pswjnm72 replies#
Simple judyrecords continuation search from command line. Requires sed, netcat, stunnel and flex.

    setup:
    flex -8iCrf 045.l;
    cc  -std=c89 -Wall -pedantic -pipe lex.yy.c -static -o yy045;
    flex -8iCrf 046.l;
    cc  -std=c89 -Wall -pedantic -pipe lex.yy.c -static -o yy046;
    stunnel 1.cfg
    echo 127.39.100.156 www.judyrecords.com >> /etc/hosts;
    usage:
    1.sh query > results.htm
    1.sh < results.htm >> results.htm

        #!/bin/sh
        # http/1.1 pipelining: only allowed 3 req then connection closes :(
        x0=$(printf '\r\n');
        x1=www.judyrecords.com;
        x2=$(printf 'host: '${x1}'\r\n');
        x4=$(printf 'connection: close\r\n\r\n');
        case $# in :)
        ;;0) # get next page
        x5=$(sed -n '1{s/.*x3 //;s/ .*//p;};
        /Go to next page/{s/.*href=\"//;s/\".*//p;}');
        x6=$(echo "${x5}"|sed -n \$p);
        x5=$(echo "${x5}"|sed -n 1p);
        test "${x5}" -a "${x6}"||exit 1;
        sed "s/ *//" <
richardbarosky#
Super interesting. Can you share screenshots or video of how this all comes together?
1vuio0pswjnm7#
Fixed error in 046.l

    /* percent encode */
      int fileno(FILE *);
      #define p(x,y) {putchar(37);putchar(x);putchar(y);}
    %option nounput noinput noyywrap
    %%
    \x20 p(50,48); /* space */
    \x21 p(50,49); /* exclamation mark */
    \x22 p(50,50); /* double quote */
    \x23 p(50,51); /* pound sign */
    \x24 p(50,52); /* dollar sign */
    \x25 p(50,53); /* percent sign */
    \x26 p(50,54); /* ampersand */
    \x27 p(50,55); /* single quote */
    \x28 p(50,56); /* opening parenthesis */
    \x29 p(50,57); /* closing parenthesis */
    \x2A p(50,42); /* asterisk */
    \x2B p(50,43); /* plus sign */
    \x2C p(50,44); /* comma */

    \x2F p(50,47); /* forward slash */

    \x3A p(51,65); /* colon */
    \x3B p(51,66); /* semi-colon */
    \x3C p(51,67); /* less than */
    \x3D p(51,68); /* equals sign */
    \x3E p(51,69); /* greater than */
    \x3F p(51,70); /* question mark */
    \x40 p(52,64); /* cuneiform */

    \x5B p(53,91); /* opening bracket */
    \x5C p(53,92); /* backslash */
    \x5D p(53,93); /* closing bracket */
    \x5E p(53,94); /* caret */

    \x60 p(53,96); /* backquote */

    \x7B p(53,123); /* opening brace */
    \x7C p(53,124); /* vertical bar */
    \x7D p(53,125); /* closing brace */
    \15
    %%
    int main(){ yylex();exit(0);}
nickstinemates#
Crazy
agumonkey1 reply#
oh these includes patents, weird
lol7682 replies#
Yeah - is there no way to filter out patents? Bit frustrating.
richardbarosky#
The best way currently is to just add -patent to the search.
MajorBee#
Phrase exclusion syntax is described in Search Tips. For patents, it’s appending -patent to your search term.

Load more comments