ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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 has this problem
  • 2 views
  • آخر ردّ كتبه 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

All Replies (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