Efficient: put Content of HTML file into mysql database

Fabian López fabian at syameses.com
Mon Nov 19 13:12:19 EST 2007


Hi colegues,
do you know the most efficient way to put the content of an html file into a
mySQL database?Could it be this one?:
1.- I have the html document in my hard disk.
2.- Then I Open the file (maybe with fopen??)
3.- Read the content (fread or similar)
4.- Write all the content it in a SQL sentence.

What happens if the html file is very big?


Thanks!
FAbian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071119/73a9af81/attachment.html>


More information about the Python-list mailing list