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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:27:10+00:00 2026-05-12T18:27:10+00:00

Most likely it’s a dumb question for those who knows the answer, but I’m

  • 0

Most likely it’s a dumb question for those who knows the answer, but I’m a beginner, and here it goes:

I have a Python script which I run in a command-line with some parameter, and it prints me some results. Let’s say results are some HTML code.

I never done any Python programming for web, and couldn’t figure it out… I need to have a page (OK, I know how to upload files to a server, Apache is running, Python is installed on the server…) with an edit field, which will accept that parameter, and Submit button, and I need it to “print” the results on a web page after the user submitted a proper parameter, or show any output that in a command-line situation are printed.

I’ve read Dive Into Python’s chapters about “HTML Processing” and “HTTP Web Services”, but they do not describe what I’m looking for.

If the answer isn’t short, I would very much appreciate links to the more relevant stuff to read or maybe the key words to google for it.

  • 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-12T18:27:10+00:00Added an answer on May 12, 2026 at 6:27 pm

    Sounds like you just need to enable CGI on apache, which pretty much will redirect your output to the webserver output.

    Python does have CGI library you may take a look at it.

    Here’s an essay by Guido ( a bit dated )

    And an interactive instruction that looks promising.

    p.s.

    Perhaps you may also want to see Google’s offering for this Google app engine ( it may not be what you want though )

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

Sidebar

Related Questions

I've got a question that most likely doesn't have a unique and clear answer.
This is most likely not an easy one but here is the situation: I
I know this is most-likely a simple question but when you restore a database
I have a problem which is most likely a simple problem, but neverthe less
this may have been asked already but I cant really find it (most likely
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
I guess this is an odd one, and the answer is most likely it
Will most likely expose that I am new to R, but in SPSS, running
This is most likely possible, but I want to style the main page using
My keystore has gone missing. I most likely deleted it by mistake, but I

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.