Outputting my python code to a webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mott3510
    New Member
    • Jul 2009
    • 22

    Outputting my python code to a webpage

    I wrote a python script and when I run it, it outputs what I want, so I know that it is working. Now I want to be able to put the output of the code on my website and I have no idea how to do this, or even where to begin for that matter. Thanks!
  • micmast
    New Member
    • Mar 2008
    • 144

    #2
    you have multiple options. the first is export the output to a html file and place that in the web document root. another is a wrapper in for example php where you call the script and use the output.
    The last option I can think of is run python code with for example cherrypy. Could you be more specific?

    Comment

    • mott3510
      New Member
      • Jul 2009
      • 22

      #3
      I would like to export the output to a html file. My python code is saved as verification.py and I would like to output that code to verification.ht ml. And I am not sure how I would do that.

      Comment

      • micmast
        New Member
        • Mar 2008
        • 144

        #4
        you could create the html file by writing to content like the file in plain text. Just make sure you add the correct html tags.

        Comment

        • mott3510
          New Member
          • Jul 2009
          • 22

          #5
          Ok. I am new with this and I am not sure what html tags to add.

          Comment

          • mott3510
            New Member
            • Jul 2009
            • 22

            #6
            I figured it out...Thanks!

            Comment

            • micmast
              New Member
              • Mar 2008
              • 144

              #7
              you are welcome :) hope I can help out some more in the future.

              Comment

              Working...