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 1031917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:00:20+00:00 2026-05-16T14:00:20+00:00

So i am fairly fluent with python and have used urllib2 and Cookies a

  • 0

So i am fairly fluent with python and have used urllib2 and Cookies a lot for website automation. I just stumbled upon the “webbrowser” module which can open a url in your default browser. Im wondering if its possible to select just one object from that url and open that up. Specifically i want to open a “captcha” so that the user can input it, and continue doing something else.

this is line containing the captcha in the html, i think:

script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LcZ-AAAAAAAANX-xwVtzow1f4RpSrbSViRUx9Js"></script>    <input type="submit" name="submitBtn" value="Submit" 

and clicking on that api link opens this:

var RecaptchaState = {
    site : '6LcZ-AAAAAAAANX-xwVtzow1f4RpSrbSViRUx9Js',
    challenge : '03AHJ_VuvoUHPdfoXLsVHGa7a26GR9s9Y5dkyKmqk2XsJ1SdiwF_2u0SV_sKnr1artkpc-5MjUe7SYD40xr7sAyvikKwpFCQTBdKUFfl76UP6EbDhezoTC8B1X8fjixuIJ4wJhI6yTc8vlX4ioh6je9lwFbPXllbGh2w',
    is_incorrect : false,
    programming_error : '',
    error_message : '',
    server : 'http://www.google.com/recaptcha/api/',
    timeout : 18000
};

document.write('<scr'+'ipt type="text/javascript" s'+'rc="' + RecaptchaState.server + 'js/recaptcha.js"></scr'+'ipt>');

any info would help with this.

  • 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-16T14:00:21+00:00Added an answer on May 16, 2026 at 2:00 pm

    It’s not possible with the webbrowser module. All webbrowser does is provide a simple way to identify the default web browser and feed a URL to it.

    If you want to render just a portion of a page, you need something that can either take arbitrary HTML fragments or can inject some Javascript after loading a page to strip out the unwanted elements.

    For that, what you need is to build a purpose-specific web browser that’s nothing more than a dialog box containing a web widget.

    That can be done using any of the following combinations of libraries:

    • PyQt and the included QtWebKit (GPL or Commercial, Windows/Mac/Linux)
    • PySide and the included QtWebKit (LGPL, Linux)
    • PyGTK and PyWebKitGTK (LGPL, Easy on Linux… no clue about Windows or OSX)
    • PyGTK and GTKMozEmbed (LGPL, Easy on Linux… no clue about Windows or OSX)
    • wxPython and the included wxIEHtmlWindow (BSD-like, Windows-only. Embeds Internet Explorer.)
    • wxPython and the included wxWebKitCtrl (BSD-like, OSX-only)
    • wxPython and wxWebKit (BSD-like, Windows/Mac/Linux)

    My advice:

    • If GPL licensing is OK, use PyQt.
    • If GPL licensing isn’t OK:
      • For Linux, use PySide or PyGTK with PyWebKitGTK (GTKMozEmbed is heavy)
      • For Windows, use wxPython with wxIEHtmlWindow
      • For OSX, you’ll have to ask someone else.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly small MySQL database (a Textpattern install) on a server that
I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and
I am fairly new to Emacs and I have been trying to figure out
Fairly new to asp.net Mvc and jquery. Have the following code working fine, but
I have a fairly simple Rails application that allows users to manage their clients
I have a fairly trivial static variable question. I'm building out a solution that
Being fairly new to JavaScript, I'm unable to discern when to use each of
I'm still fairly new to T-SQL and SQL 2005. I need to import a
I'm fairly new to ASP.NET and trying to learn how things are done. I
I'm fairly new to the STL, so I was wondering whether there are any

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.