473,581 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Import existing web pages into database?

I've inherited a site that has 1000+ product pages that follow a similar
layout. I would like to import these pages into a database for ease of
future updating. The pages have the usual banners, navigation menus, etc.
and other extraneous code that must be removed.

Does software exist to import existing HTML pages into a database - even a
rough import would work as I can massage the data later.

Ideas/suggestions will be appreciated.

Jul 20 '05 #1
15 5055
"DesignGuy" <do********@now here.com> wrote in message news:8cTrc.4356 1$gr.4348411@at tbi_s52...
: I've inherited a site that has 1000+ product pages that follow a similar
: layout. I would like to import these pages into a database for ease of
: future updating. The pages have the usual banners, navigation menus, etc.
: and other extraneous code that must be removed.
:
: Does software exist to import existing HTML pages into a database - even a
: rough import would work as I can massage the data later.
:
: Ideas/suggestions will be appreciated.
:
Storing content in a database alone won't give you any flexibility for
massaging/managing content. What about serving the content via
a web server?

You'd be better off using a CMS that offers these higher-level functions,
including site import.

--
Long
www.webcharm.ca - Integrated content management web hosting
Jul 20 '05 #2

"Long - CM web hosting" <ro******@roger s.com> wrote in message
news:lJ******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
"DesignGuy" <do********@now here.com> wrote in message news:8cTrc.4356 1$gr.4348411@at tbi_s52... : I've inherited a site that has 1000+ product pages that follow a similar
: layout. I would like to import these pages into a database for ease of
: future updating. The pages have the usual banners, navigation menus, etc. : and other extraneous code that must be removed.
:
: Does software exist to import existing HTML pages into a database - even a : rough import would work as I can massage the data later.
:
: Ideas/suggestions will be appreciated.
:
Storing content in a database alone won't give you any flexibility for
massaging/managing content. What about serving the content via
a web server?

You'd be better off using a CMS that offers these higher-level functions,
including site import.


The product database would reside on a web server -- the problem is getting
the existing pages into a database to beginth (none was used to create the
original pages).

Importing existing pages into a CMS won't do what is needed, as the layout
will be changed completely.

Jul 20 '05 #3
"DesignGuy" <do********@now here.com> wrote in message news:xFWrc.1391 0$JC5.1307707@a ttbi_s54...
:
: "Long - CM web hosting" <ro******@roger s.com> wrote in message
: news:lJ******** ***********@new s04.bloor.is.ne t.cable.rogers. com...
: > "DesignGuy" <do********@now here.com> wrote in message
: news:8cTrc.4356 1$gr.4348411@at tbi_s52...
: > : I've inherited a site that has 1000+ product pages that follow a similar
: > : layout. I would like to import these pages into a database for ease of
: > : future updating. The pages have the usual banners, navigation menus,
: etc.
: > : and other extraneous code that must be removed.
: > :
: > : Does software exist to import existing HTML pages into a database - even
: a
: > : rough import would work as I can massage the data later.
: > :
: > : Ideas/suggestions will be appreciated.
: > :
: > Storing content in a database alone won't give you any flexibility for
: > massaging/managing content. What about serving the content via
: > a web server?
: >
: > You'd be better off using a CMS that offers these higher-level functions,
: > including site import.
:
: The product database would reside on a web server -- the problem is getting
: the existing pages into a database to beginth (none was used to create the
: original pages).
:
Yes, all CMSes that are database driven also have a database sitting behind
a web server. The CMS may have functions to import a web site from your
local disk.

: Importing existing pages into a CMS won't do what is needed, as the layout
: will be changed completely.
:
Granted with certain CMSes you have to use the predefined layout. But it
does depend on the selected CMS and how flexible it is in terms of HTML
source control. In our case, you have full control of every HTML element
(including CSS) so you can change the layout and content as often as you like.

webcharm.ca is hosted by our CMS. It uses a specific layout that is completely
separate and independent from any other site hosted on the same system.

--
Long
www.webcharm.ca - Integrated content management web hosting
Jul 20 '05 #4
"DesignGuy" <do********@now here.com> wrote in message news:<8cTrc.435 61$gr.4348411@a ttbi_s52>...
Does software exist to import existing HTML pages into a database


No, it needs to be written as a one-off for each site. If you're a
coder you'll probably just sit down and write it yourself (try Perl
and one of the HTML parsing modules). If you're not naturally inclined
to see everything as an excuse to cut some code, then you might find a
semi-automatic tool that writes this import script fragment for you
and wraps it up inside its standard page-reading / record-adding loop.
Note that however you do it, "software" is being created to map HTML
fragments onto database fields and this is just an inherently awkward
task, no matter how you approach it.

As an example, M$oft SQL Server has an import tool called DTS and it's
quite capable of being made to read and parse web pages. However the
page -> field values parser is the hard bit, and the loop is the easy
bit, so this semi-auto scripting approach doesn't really add much and
is often almost as complicated.

The difficulty of this sort of data import varies hugely depending on
the particular site concerned. It doesn't depend on the size of the
site, and only slightly on the number of field values to extract from
each page. The big variable is the structure of each HTML page,
particularly the semantic visibility of their underlying structure.
Real killers that will ruin your day are needing to do this on other
people's sites, needing to do it continuously for the forseeable
future (i.e. scraping a daily feed) and needing to do it on a site
with redesigns happening to it.

If you want a further opinion, please post a URL for the existing
site.

An alternative approach is to avoid doing this from HTML. Sites with
1000's of pages were rarely built directly from hand-coded HTML
anyway. Can you grab their content at a higher level? Word docs,
database?
Jul 20 '05 #5
"Long - CM web hosting" <ro******@roger s.com> wrote in message news:<Ww******* **********@news 01.bloor.is.net .cable.rogers.c om>...
Yes, all CMSes that are database driven also have a database sitting behind
a web server.


Not all of them. There is still scope for some low-cost hosting where
an off-line database makes pages, then these are static published to a
web server.
Jul 20 '05 #6
Andy Dingley wrote:
There is still scope for some low-cost hosting where an off-line
database makes pages, then these are static published to a web
server.


Lots of sites are done this way, offline or not. It's called "baking"
the content.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #7
"Andy Dingley" <di*****@codesm iths.com> wrote in message
news:28******** *************** ***@posting.goo gle.com...
: "Long - CM web hosting" <ro******@roger s.com> wrote in message
news:<Ww******* **********@news 01.bloor.is.net .cable.rogers.c om>...
:
: > Yes, all CMSes that are database driven also have a database sitting behind
: > a web server.
:
: Not all of them. There is still scope for some low-cost hosting where
: an off-line database makes pages, then these are static published to a
: web server.

Perhaps I should have said "web-based/online/live" system instead...

Such off-line systems cost more but offer little benefit:
1. need to manage two versions of the website and keeping them in sync will be
more difficult, especially for larger sites.
2. more work is needed to generate dynamic content

It is unfortunate people not value their time and effort more when considering
a web host. I suppose you do get what you pay for...

--
Long
www.webcharm.ca - Integrated content management web hosting
Jul 20 '05 #8
"Andy Dingley" <di*****@codesm iths.com> wrote in message
news:28******** *************** ***@posting.goo gle.com...
: "DesignGuy" <do********@now here.com> wrote in message news:<8cTrc.435 61$gr.4348411@a ttbi_s52>...
:
: > Does software exist to import existing HTML pages into a database
:
: No, it needs to be written as a one-off for each site. If you're a
: coder you'll probably just sit down and write it yourself (try Perl
: and one of the HTML parsing modules).

Not necessarily. It depends how you define your import "chunks".
If you need to parse the content and extract specific elements, then
yes. Otherwise file-level chunks can be import with a more general
module, if available with selected CMS.

In this case a generalized module can be written to import any site
while preserving content and directory structures.

--
Long
www.webcharm.ca - Integrated content management web hosting
Jul 20 '05 #9
On Mon, 24 May 2004 21:11:14 GMT, "Long - CM web hosting"
<ro******@roger s.com> wrote:
"Andy Dingley" <di*****@codesm iths.com> wrote in message
news:28******* *************** ****@posting.go ogle.com...
: "Long - CM web hosting" <ro******@roger s.com> wrote in message
news:<Ww****** ***********@new s01.bloor.is.ne t.cable.rogers. com>...
:
: There is still scope for some low-cost hosting where
: an off-line database makes pages, then these are static published to a
: web server.

Perhaps I should have said "web-based/online/live" system instead...

Such off-line systems cost more but offer little benefit:
1. need to manage two versions of the website and keeping them in sync will be
more difficult, especially for larger sites.
2. more work is needed to generate dynamic content

It is unfortunate people not value their time and effort more when considering
a web host. I suppose you do get what you pay for...


There seems little point in dynamically generating a site which is, on
the whole, static. I used to run such a site, and it changed
infrequently so we considered it pointless to rebuild the page for
each request.

Instead, we just used a preprocessing tool, with the output from that
tool going straight into the "live" directory on the server. Much of
the content was actually from files on disk rather than a database,
but there was some database-driven content and the principle still
applies.

If a site contains content which has long-term relevance there is
often little need for dynamicism.

-Claire
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6264
by: Doug Baroter | last post by:
Hi, One of my clients has the following situation. They use Access DB for data update etc. some business functions while they also want to view the Access data quickly and more efficiently in SQL Server 2000. Huge Access db with over 100 user tables, over 60 MB data. The DTS package that comes with SQL Server 2000 seems pretty "messy"...
2
3069
by: David Berry | last post by:
Hi All. I'm looking for any help or sample code that can show me how to make a file import wizard in ASP.NET (VB preferred) like the one that MS Access uses. I'm working on a web site where the user has the ability to upload a file (.txt or .csv). The data in the file may be comma delaminated, tab delaminated, fixed width etc (we don't know). ...
1
6690
by: Dan | last post by:
Could someone please help me with auto importing a series of data files into an Access table. I tried to follow code given below in a previous messagebut i'm getting error messages. Here's my database stats: Path: C:\Database (contains the database and all the text files to be imported) Text files to import: (SampleData4.txt and...
3
4552
by: Danny | last post by:
Trying to import a couple of fields from an excel spreadsheet into an Access 2000 database by extracting needed fields and pasting them into a new spreadsheet, I can import the data into a new table in the database but will not allow me to import the same spreadsheet into an existing table w/ the same field properties. I know there's nothing...
7
33389
by: phillip.s.powell | last post by:
We're looking at a GUI interface for our MySQL DB and I am interested in MySQL Administrator, however, one of our requirements is to be able to import/export databases. Is this possible or do I need to know else (e.g. Navicat)? Thanks Phil
5
2163
by: Konstantin Andreev | last post by:
Recently I became interested, - Are the data, bulk loaded in the table with LOAD utility, consume the same disk space as loaded with IMPORT utility? The answer turned out to be NOT ! Here is a nutshell description of the test. The testing was done at "DB2/LINUX 8.2.3". Tables for tests: F4106 has 5203 rows, 32 columns. F42199 has...
2
12080
by: KingoftheKings | last post by:
I'm new here. I want a help with VB codes that will import text or excel files from a specified directory in to an existing or new Access table. I have written some codes, but when I click the command button, nothing happens.Here is my code: Private Sub cmdStartImport_Click() Dim rst As ADODB.Recordset Dim strNewTable As String Dim...
9
5768
by: a | last post by:
Dear friends I want import data from CSV file to mdb file How can I do that in vb.net?
2
4844
by: Constantine AI | last post by:
I am wanting to import CSV files into Access, which isn't a problem at the moment the code i have is as follows: Dim strSQL As String Dim CSVTable As String Dim FilePath As String Dim Result As String strSQL = "DELETE * from csvordlin" CSVTable = "csvordlin" FilePath = InputBox("Please Enter a Path File for the CSV Location!", "Criteria...
0
7882
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6564
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5683
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1410
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1145
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.