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

  • SEARCH
  • Home
  • 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 5999995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:37:50+00:00 2026-05-23T00:37:50+00:00

Say I wanted to load google, then automatically enter text into the search bar

  • 0

Say I wanted to load google, then automatically enter text into the search bar and press enter all without user input, how would i do that?

Edit: while i do need to point it to a specific URL, i want python to be able to enter text regardless of the URL. That’s why i need it to be able to enter text into the search on google as opposed to just loading the URL that would come up when you search in google

  • 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-05-23T00:37:51+00:00Added an answer on May 23, 2026 at 12:37 am

    If I understand properly, you actually want to “control” a specific browser, i.e., open a browser window to a specific URL, rather than having a program parse a web page.

    In this case, you can take a look at the subprocess module, with wich you can actually run an external program (e.g., “firefox”), and then check the specification of the browser’s command line to understand how to point it to a specific URL. In the case of firefox, you just pass the URL as the first argument. So you could use something like:

    from subprocess import Popen
    ...
    Popen(["firefox", "this.is.my.url.com"], ...)
    

    More specifically, if you want to open firefox on the google results for the query string “this is my query” you would use something like:

    Popen(["firefox", "http://www.google.com/#q=this+is+my+query"])
    

    Edit: If, instead, you want to start up the browser and then interactively play with the window browser, maybe you should look into desktop automation/messaging frameworks, such as dbus. I do not know exactly if or how, but it should be possible to focus on the browser window, select a specific field and put some text in it.

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

Sidebar

Related Questions

What's the best/most efficient way to extract text set between parenthesis? Say I wanted
Say I wanted to print the response time on my pages like Google do.
Say I wanted to have a project, and one-to-many with to-do items, and wanted
Lets say I wanted to scrape a webpage, and extract some data. I'd most
Let's say I wanted to have an application that could easily switch the DB
Let's say I wanted to make a python script interface with a site like
As an example, lets say I wanted to list the frequency of each letter
Let's say I woke up today and wanted to create a clone of StackOverflow.com,
Say you have an application divided into 3-tiers: GUI, business logic, and data access.
My plan is to load a picture from a users hard drive and then

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.