473,703 Members | 2,361 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 5066
"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
6271
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" in the sense that it assumes that one needs to do one time import only or accurately it does not...
2
3081
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). What I'd like to create is something like MS Access uses to import an Excel file into the...
1
6698
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 SampleData3.txt as testing examples)
3
4557
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 wrong w/ the data because again it will allow me to import and create a new table w/ data, just...
7
33410
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
2172
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 1399252 rows, 245 columns.
2
12106
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 strFileType As String On Error GoTo ErrorHandler
9
5776
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
4850
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 Required")
0
8759
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9017
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8963
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6588
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5922
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2453
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2069
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.