Page 1 of 1

Get plain text from HTTP server

Posted: Thu Feb 13, 2020 1:19 pm
by PabloG
Hi, I'm trying to get plain text from HTTP server but I cannot find an option to do this.
My use case for this is to generate a listfile to be used as input for 7zip. I know I can use ES.EXE but I need the advanced filters, eg:

Code: Select all

wget http://localhost:8010?s="q*.jpg dm:gt:2010"^&json=1^&path_column=1 -O lst
and this filters aren't supported in ES.EXE as far I can tell. I could reprocess the json in Python but the output can be millions of pathnames so I would prefer to get the plain listfile if possible.
Until now I've been using hddb https://www.majorgeeks.com/files/details/hddb.html to do this but it seems to have problems with some unicode characters generating the listfile

Re: Get plain text from HTTP server

Posted: Sun Feb 16, 2020 2:32 am
by void
Please try escaping the white space with double quotes:

wget "http://localhost:8010?s=q*.jpg dm:gt:2010&json=1&path_column=1" -O lst


& does not need to be escape when in quotes.

ES supports all the search functions in Everything.
For example:


es q*.jpg dm:^>2010


ES does not support macros (eg: zip: or audio: etc..).

Re: Get plain text from HTTP server

Posted: Sun Feb 16, 2020 4:53 pm
by NotNull
void wrote:
Sun Feb 16, 2020 2:32 am

Code: Select all

es q*.jpg dm:>2010 -path-column
You need to prevent the ">" to be seen as a redirection by escaping this ">"

CMD:

Code: Select all

es q*.jpg dm:^>2010 -path-column

Powershell:

Code: Select all

es q*.jpg dm:`>2010 -path-column

Re: Get plain text from HTTP server

Posted: Mon Feb 17, 2020 5:27 pm
by PabloG
@void / @NotNull: ok, I tested ES with "gt:" instead of "^>" and then then I assumed that the filters aren't working in ES.
Also I read in an old post viewtopic.php?t=1970 "ES does not support filters, this is on my TODO list." and understood that search filter expressions aren't supported at all, not filter functions
Now I got it working with

Code: Select all

es qq*.jpg dm:^>2010 -export-txt lst
I use export-txt instead of > because I've got unicode filenames, it's working fine so far.
Thanks for the quick answer!