I want to populate a mysql database with basic ‘holiday resort’ content e.g. name of the resort, description, country. What methods can i use to populate it?
I want to populate a mysql database with basic ‘holiday resort’ content e.g. name
Share
First, find the Web sites of one or more holiday companies who offer the destinations you’re interested in. You’re going to scrape these.
You don’t say what language you’re using for the implementation, but here is how you might do it in Perl:
LWP::UserAgentandHTML::TreeBuilderto explore the site andextract the destination information.
DBIwith theDBD::MySQLdriver to insert the data into your database.