Get plain text from HTTP server

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
PabloG
Posts: 2
Joined: Thu Feb 13, 2020 1:05 pm

Get plain text from HTTP server

Post 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
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Get plain text from HTTP server

Post 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..).
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Get plain text from HTTP server

Post 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
PabloG
Posts: 2
Joined: Thu Feb 13, 2020 1:05 pm

Re: Get plain text from HTTP server

Post 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!
Post Reply