#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    How to call perl script from html using python


    Hi,

    I wanna call perl script in HTML form n store that data in DB using Python.

    How can i do this.......??

    Please help me

    Thank you
    Pervez
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    39
    Rep Power
    2
    If you trying to run the PERL script directly look at the documentation for subprocess. Be prepared for a little trial and error to get this working.

    If it is a website being driven by a PERL script (or any website) you could look at scrapy for example.

    To process HTML look at the documentation for HTMLParser (html.parser in Python 3) or try the regular expression module re if that is more appropriate.

    The module you need for storing the result in a database will depend upon the database you are using but they have all standardised on a single API so it should make little difference.

IMN logo majestic logo threadwatch logo seochat tools logo