August 14th, 2012, 01:49 AM
How to call perl script from html using python
I wanna call perl script in HTML form n store that data in DB using Python.
How can i do this.......??
Please help me
August 14th, 2012, 08:57 AM
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.