Quote:
Originally Posted by ludo33
This is the bit that I am stuck at, how to write the result to a mysql table?
|
made a slight mistake here...
what i should have said is something like this:
use mysqlimport to import the data back into a database.
if for example the file dumped from curl is called madonna.txt, then mysqlimport would import it into a table (assuming it is already created) called madonna.
the madonna text file would need some sort of parsing before hand (tab separation).
assuming this has all been done, then this could work.
Code:
curl -L http://en.wikipedia.org/wiki/madonna > madonna.txt
some file parsing code here.............(tab separated columns)
mysqlimport -h host -pxxx dbname --local madonna.txt