You are not logged in.

#1 2016-01-03 13:35:34

navi_se
Member
Registered: 2015-07-06
Posts: 135

[SOLVED] Search query from url into the forum (using qutebrowser)

I am trying to search this forum directly by the url (this is to allow the functionality in my browser, qutebroswer, with a shortcut).

For other websites I perform a search and then get the required url with a space where the query is placed, e.g., for Duck Duck Go

https://duckduckgo.com/?q={}

where {} is the space which will contain the search query.

If I search on this forum though, I get a string like

https://bbs.archlinux.org/search.php?se … 1231232444

trying to replace the search id with another number, or a query, leads to invalid links.

Other websites, like wikipedia, have a syntax like

https://en.wikipedia.org/w/index.php?search={}

but trying to replace search_id with search or other similar terms yield no results.

Is there a way to do this? Is there a sensible meaning to the search ID (e.g. so that I can peraphs script something to get me the required search_id number to pass in the url?)

Last edited by navi_se (2016-01-03 14:23:33)

Offline

#2 2016-01-03 13:45:37

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 748

Re: [SOLVED] Search query from url into the forum (using qutebrowser)

You need to use https://bbs.archlinux.org/search.php?ke … ion=search
(shamelessly taken from the arch-firefox-search package)
Edit: In /usr/lib/firefox/distribution/searchplugins/common/arch-forum-c.xml there are some other parameters you might be interested in:

<Url type="text/html" method="GET" template="https://bbs.archlinux.org/search.php">
  <Param name="keywords" value="{searchTerms}"/>
  <Param name="search_in" value="0"/>
  <Param name="sort_by" value="0"/>
  <Param name="sort_dir" value="DESC"/>
  <Param name="show_as" value="posts"/>
  <Param name="action" value="search"/>
</Url>

Last edited by lahwaacz (2016-01-03 13:48:24)

Offline

#3 2016-01-03 13:54:29

navi_se
Member
Registered: 2015-07-06
Posts: 135

Re: [SOLVED] Search query from url into the forum (using qutebrowser)

Ah, yes! That works!

I was just experimenting with

https://bbs.archlinux.org/search.php?ac … eywords={}

which is what you get if you perform an empty search. Curiously, if you swap {} with a term right after performing the empty search, it will work, but if you then attempt the same thing from a random page you only obtain another empty search.

Your ordering works instead, and so I can use:

https://bbs.archlinux.org/search.php?ke … ion=search


Also thanks for the other parameters, one can also use the search function of the forum with different parameters to see them in use and customize to one's liking.

smile

Offline

Board footer

Powered by FluxBB