搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

I'd like to start firefox from the command line specifying a URL and provide a keyword that should be entered into the search box of the opened web page

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 FredMcD

more options

Many Web pages provide a search box. I'd like to scan a series of web portals (amazon and some more stores) to see if they have certain goods available. I think to write a script that starts firefox at a certain URL, e.g. for 20 different URLs consecutively. The good a would like to specify in a text supplied to the command line start of firefox to be pasted into the search box of the started web page.

Thanks in advance for any suggestions!

Frank

Many Web pages provide a search box. I'd like to scan a series of web portals (amazon and some more stores) to see if they have certain goods available. I think to write a script that starts firefox at a certain URL, e.g. for 20 different URLs consecutively. The good a would like to specify in a text supplied to the command line start of firefox to be pasted into the search box of the started web page. Thanks in advance for any suggestions! Frank

所有回覆 (4)

more options

See this MDN search for command line. MDN = Mozilla Developer Network

more options

the-edmeister said

See this MDN search for command line. MDN = Mozilla Developer Network

Thank you very much for your suggestions. Maybe, I did not fully grasp what you suggested. I have no problem starting firefox from the command line and even search the Web with my default search engine for a keyword I specify in the command line.

However, I'd like to confine search to the Web page that I supply in the command line and that itself provides a search box. Doing this interactively, usually leads to only a few results instead of many more when google searches the whole Web. The latter is done even when I specify the URL and the keyword in the google search field connected with AND, as also links to the Web page are gathered. Greetings, Frank

more options

Use an URL that can take search terms via a GET parameter.

You need to add quotes around the URL and possibly escape spaces (%20) and other characters.

more options

One way is to manually start each search manually for each search and each thing you are looking for. And save them as short-cuts using the search engine and item as the name.

Ex; Bing - Batteries