search on specific website to make an aggregator search

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
lufykun
Posts: 8
Joined: Sat Feb 09, 2019 11:37 am

search on specific website to make an aggregator search

Post by lufykun »

hello
first happy new year
i need help to finish my aggregator search
I’m tired of having to look for a series or a manga on all my vod services (netflix,amazon,disney+,canal+)
the goal is to create an aggregator of search

in push2run
listen for => search vod $
open => C:\GoogleHome\search.bat
start directory => C:\GoogleHome
parameters => "$"

in my bat file
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.netflix.com/search?q=%1 (work)
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.primevideo.com/search/ref=a ... ?phrase=%1 (work)

start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://www.canalplus.com/="%1 (not work)
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://www.disneyplus.com/fr-fr/search="%1 (not work)

i tried many syntax but can't find work this 2 site
https://www.disneyplus.com/fr-fr/search="%1 (not work)
https://www.disneyplus.com/fr-fr/search ... phrase="%1
https://www.disneyplus.com/fr-fr/search?q=%1
https://www.disneyplus.com/fr-fr/search ... arch&q="%1

same thing with
https://www.canalplus.com/
with quote and without but no luck it's not work
how can can find the correct syntax ?
or any help
thank you
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: search on specific website to make an aggregator search

Post by RobLatour »

Interesting, I was able to test both and it looks like both of those search services don't let you pass the search query through the URL.

The only way to get around that appears to be to go to the website and have the search criteria entered in automatically in their search bars.

Push2Run should be able to do this, but only for one site being opened from one command, but I appreciate what you want to do in terms of aggregation doesn't really mean that this will work for you.

You may want to take a look at Auto Hot Key (AHK). You could maybe pass into an AHK script the search term, and have it run a search.

In other words, Push2Run to a .bat file, and form the .bat file call the .ahk script.

Just an idea.

Also, as an aside, you may want to use %* instead of %1 in your .bat file. If you use %1 you may only get the first word passed (if there are more than one in your search criteria), if you use %* you should get all words (if there are more than one).

Hope this helps or at least gets you on a track to success.

If you end up figuring this out, I would appreciate it if you post back here.
lufykun
Posts: 8
Joined: Sat Feb 09, 2019 11:37 am

Re: search on specific website to make an aggregator search

Post by lufykun »

Hello

thank for your answer
is it a way to copy what i say in clipboard ?
can i launch cards with batch ?
can you help me for https://www.crunchyroll.com/search to have the correct syntax ?
of course when i finish i post our work :D
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: search on specific website to make an aggregator search

Post by RobLatour »

Yes, you can copy what you say to the clipboard

you need to create a .bat file, for example :
c:\temp\test.bat
which contains just one line:
echo %* | clip

then in Push2Run in your Push2Run card, in the open field enter:
c:\temp\test.bat
and in the parameters field enter:
$

Regarding, "can i launch cards with batch", I'm not exactly sure what you mean - can you expand on that?

Regard the curnchyroll search ...

I did a quick search for the word "test" and it generated a URL as follows
https://www.crunchyroll.com/search?o=m&r=t&q=test
so I think what you are after is
https://www.crunchyroll.com/search?o=m&r=t&q=$

Not sure about the premium service I am not a member.
lufykun
Posts: 8
Joined: Sat Feb 09, 2019 11:37 am

Re: search on specific website to make an aggregator search

Post by lufykun »

hi
thank
for prenium account in crunchyroll
https://www.crunchyroll.com/search?from=search&q=%*
need to create a new bat ? to perform the copy to clipboard

i explained what i want to do
( ahk little complicated i still learn about it )

start search vod (in push2run)
launch my search bat
for url search services don't let me pass the search query through the URL.
pass on search bar what i say using the clipboard
i can use tiny task to record macro to do that

is it clear ? (sorry for my poor english)
i'm little bit tired by covid-19 :D

Regarding, "can i launch cards with batch", I'm not exactly sure what you mean - can you expand on that?

launch p2r via bat

Push2Run should be able to do this, but only for one site being opened from one command, but I appreciate what you want to do in terms of aggregation doesn't really mean that this will work for you.

create a p2r for each site search services don't let me pass the search query through the url
and launch all via bat .
RobLatour
Site Admin
Posts: 1003
Joined: Mon Feb 19, 2018 11:43 am

Re: search on specific website to make an aggregator search

Post by RobLatour »

no problem.

Regarding Push2Run from a .bat file, yes you can:

As per the help:
The Push2Run command line

You can run Push2Run itself from the command line and pass into the program, even if it is currently running, a phrase that Push2Run has been set up to listen for. For example, from the windows cmd window, from the Push2Run program directory, you can enter:

c:\Program Files\Push2Run>Push2Run open the calculator
ref: https://push2run.com/help_v3.4.2.0.html#command
Post Reply