Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8061895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:29:26+00:00 2026-06-05T10:29:26+00:00

I am writing a script which involves showing the user a webpage on the

  • 0

I am writing a script which involves showing the user a webpage on the basis of his requirements (which I take as inputs) and opening it in firefox. For instance, a crude version of this is :

#!/bin/bash
read -p "What do you want to search" search_term
link=$(echo "http://www.mywebsite_whatever.com/search?q="$search_term)
firefox $link

The major problem is I cannot wget/urllib this website since I don’t have permission.

Now what I want to do is :

Have the user look over only certain keywords on the webpage. So for that I want to either:

  1. Open firefox with the find box (Ctrl + F) ON with the keyword in it (without changing the source code of firefox)

  2. Somehow have firefox open the website, save it as html and quit. (I can’t wget) Then I can grep out keywords as desired. [Please don’t start off on how this is unethical and all. I am doing this merely as an exercise]

I am working on Linux.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:29:28+00:00Added an answer on June 5, 2026 at 10:29 am

    Use Wget with the --user-agent switch so that the website thinks you’re using Firefox, for example

    wget --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0"
    

    Of course, for a permanent script you should instead use --user-agent="MyScript/1.0 (http://mywebsite/)" or similar so that if it goes haywire they know who to contact.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a Python script to do some admin functionality which involves running
I'm writing a script which manages a very large table. When a user clicks
I am writing a script which will do this: #!/bin/bash mysqldump -u user -p
I am writing a script on which the user needs to be able to
I'm writing a script which requires some stuff to be carried out in an
I'm writing a script which is to be executed hourly. It basically works as:
I am writing python script which gets links from website. But when I tried
I am writing a php script which will run through cron . Its task
I'm writing a backup script which Copies the data to backup disk. Flushes the
I'm writing a Groovy script which uses third party java code that I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.