User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 392,040 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,318 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 21139 | Replies: 20
Reply
Join Date: Oct 2005
Posts: 7
Reputation: kalpana is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kalpana kalpana is offline Offline
Newbie Poster

Re: How to extract data from web databases?

  #11  
Mar 14th, 2006
[quote=kalpana]Hi all, anyone know how to extract data from a web database. For example, how can I extract RDF documents into relational database.I am in neede of RDF language since I am doing a project in semantic web
Reply With Quote  
Join Date: Jul 2006
Posts: 2
Reputation: GeorgeL is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
GeorgeL GeorgeL is offline Offline
Newbie Poster

Re: How to extract data from web databases?

  #12  
Jul 21st, 2006
Newbie, http://www.newbielabs.com, is a great web automation tool for extracting web data and saving it to either Excel or Access. If you are not adept in scripting, they can customize scripts for you for a small fee.

GW



Originally Posted by kalpana
Hi all, anyone know how to extract data from a web database. For example, how can I extract movie information from http://www.amazon.com/ into a relational database? Is there any existing tools to do this? Or need I write some codes?I am in need of movie information since I am doing a project in recommender system for movie.Please reply me for this
Reply With Quote  
Join Date: Jul 2006
Posts: 2
Reputation: michael_at_work is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
michael_at_work michael_at_work is offline Offline
Newbie Poster

Solution Re: How to extract data from web databases?

  #13  
Jul 25th, 2006
IMHO the by far best tool for this kind of work is iMacros ( http://www.iopus.com/imacros ). Here is an example VBS script that does exactly what you need:


Dim MyArray
Dim objFileSystem, objOutputFile
Dim strOutputFile
Dim pos

' access database
set db = CreateObject("ADODB.Connection")
db.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" _
& mypath & "IIM-TEST-EXTRACT.MDB")

set iim1= CreateObject ("InternetMacros.iim")
iret = iim1.iimInit("")

For num = 1 To 3
str = cstr(num) 'Convert integer to string
iret = iim1.iimDisplay("Listing No: " + str)
pos = num '+ 4'start at 5: Offset for POS= statement
str = cstr(pos) 'Convert integer to string
iret = iim1.iimSet("-var1", str) 'Select a new link for each run
iplay = iim1.iimPlay("wsh-extract-jobs")
data = iim1.iimGetLastExtract()
If iplay = 1 and len (data) > 0 Then
MyArray = Split(data, "[EXTRACT]")
' use SQL to insert new data
sql = "insert into tableJobListings (JobTitle, Salary, PositionType, RefCode) values ('" _
& MyArray(0) & "', '" & MyArray(1) & "' , '" & MyArray(2) & "' , '" & MyArray(3) & "')"

' execute sql statement
set rs = db.Execute(sql)

End If

---

PS: If you have any question about this, please post in their forum at http://forum.iopus.com , their support is VERY responsive
Reply With Quote  
Join Date: Jul 2006
Posts: 2
Reputation: GeorgeL is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
GeorgeL GeorgeL is offline Offline
Newbie Poster

Re: How to extract data from web databases?

  #14  
Jul 26th, 2006
Sure you can spend $499.00 for IMacro Scripting Edition or just $49.95 for Newbie Automation Suite, which also comes with a sophisticated Task Manager program. I think iOpus only uses the Windows Scheduled Tasks program and only supports IE. Newbie runs on both IE and Mozilla Firefox.

The following Newbie Script extracts Amazon search results and save it to any ODBC compliant DB (Oracle, MSQL, Access, etc):

program Extract_Amazon;
var
sData : string;
sSearchStr : string;

procedure OnDocumentComplete(URL : string);
begin
if IsPartOf('http://www.amazon.com/exec/obidos/ats-query-page', URL) then
begin
Fill('field-title', sSearchStr);
SendKeyPress('Enter');
end;
if IsPartOf('http://www.amazon.com/exec/obidos/search-handle-form/ref', URL) or
IsPartOf('http://www.amazon.com/exec/obidos/search-handle-url/ref', URL) then
begin
sData := GetTableCell(23,1,2);
AppendDBTable;
DBSetField('SearchFld', sData);
PostDBTable;
NewbieScriptEnd;
end;
end;

{ This is the main program body. }
begin
DeleteFile(ExcelFile);
if not(OpenDBTable('AmazonDB', 'ResultTable')) then
NewbieScriptEnd;
sSearchStr := Readln('Enter search string:');
Navigate('http://www.amazon.com/exec/obidos/ats-query-page/ref=b_tn_bh_bo/002-3070511-5218419');
end.





Originally Posted by michael_at_work
IMHO the by far best tool for this kind of work is iMacros ( http://www.iopus.com/imacros ). Here is an example VBS script that does exactly what you need:


Dim MyArray
Dim objFileSystem, objOutputFile
Dim strOutputFile
Dim pos

' access database
set db = CreateObject("ADODB.Connection")
db.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" _
& mypath & "IIM-TEST-EXTRACT.MDB")

set iim1= CreateObject ("InternetMacros.iim")
iret = iim1.iimInit("")

For num = 1 To 3
str = cstr(num) 'Convert integer to string
iret = iim1.iimDisplay("Listing No: " + str)
pos = num '+ 4'start at 5: Offset for POS= statement
str = cstr(pos) 'Convert integer to string
iret = iim1.iimSet("-var1", str) 'Select a new link for each run
iplay = iim1.iimPlay("wsh-extract-jobs")
data = iim1.iimGetLastExtract()
If iplay = 1 and len (data) > 0 Then
MyArray = Split(data, "[EXTRACT]")
' use SQL to insert new data
sql = "insert into tableJobListings (JobTitle, Salary, PositionType, RefCode) values ('" _
& MyArray(0) & "', '" & MyArray(1) & "' , '" & MyArray(2) & "' , '" & MyArray(3) & "')"

' execute sql statement
set rs = db.Execute(sql)

End If

---

PS: If you have any question about this, please post in their forum at http://forum.iopus.com , their support is VERY responsive
Reply With Quote  
Join Date: Jul 2006
Posts: 2
Reputation: michael_at_work is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
michael_at_work michael_at_work is offline Offline
Newbie Poster

Solution Re: How to extract data from web databases?

  #15  
Jul 26th, 2006
Originally Posted by GeorgeL
Sure you can spend $499.00 for IMacro Scripting Edition or just $49.95 for Newbie Automation Suite, which also comes with a sophisticated Task Manager program.

Newbie looks like a nice program but I never used it, so I can't say much about it. Actually, price was not really the issue when I purchased the software. iMacros was recommended to me by several colleagues and friends. It works very reliably with all the websites I need to automate. Also, I used their tech support twice and always received a solution (not just a reply!) in less a day. So I like it, but YMMV.

PS: As task scheduler/manager, I use the Windows task scheduler. Free with every Windows PC
Last edited by michael_at_work : Jul 26th, 2006 at 8:54 am.
Reply With Quote  
Join Date: Jun 2006
Posts: 16
Reputation: findinforums is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
findinforums findinforums is offline Offline
Newbie Poster

Re: How to extract data from web databases?

  #16  
Aug 28th, 2006
I've heard very very good things about Iopus software [IMG]http://images.myspacetweaker.net/pics/thumbsup.gif[/IMG]
it's rather pricy, but you really gotta check it out it can let you automate a lot of your web processes..
Reply With Quote  
Join Date: Oct 2006
Posts: 1
Reputation: GIRob69 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
GIRob69 GIRob69 is offline Offline
Newbie Poster

Re: How to extract data from web databases?

  #17  
Oct 4th, 2006
If you are using MS Office, here it is:
  1. Open a database, or switch to the Database window for the open database.
  2. To import HTML tables or lists, on the File menu, point to Get External Data, and then click Import. To link HTML tables or lists, on the File menu, point to Get External Data, and then click Link Tables.
  3. In the Import or Link dialog box, in the Files of type box, click HTML Documents (*.html; *.htm).
  4. Click the arrow to the right of the Look in box.
  5. Select the drive and folder where the HTML file you want to import or link is located, and then double-click the file name.
  6. Follow the instructions for the Import HTML Wizard or the Link HTML Wizard. Click the Advanced button if you want to edit an import/export specification (import/export specification: A specification that stores the information that Access needs to import or export a fixed-width or delimited text file.) or specify different file and field formats.
  7. If your HTML file contains more than one table or list, repeat steps 1 through 6 for each table or list you want to import or link.
Notes
  • By default, Access converts a hyperlink address to a Hyperlink data type column, but only if all values in a table column or list contain a hyperlink address defined by an <A HREF> HTML tag. You can change the data type when using the Import HTML Wizard or the Link HTML Wizard.
  • A table embedded within a table cell in an HTML file is treated as a separate table when you import or link. A list embedded in a table cell is treated as the contents of a cell, and each item in the list is delimited with the carriage return/line feed characters.
  • For data that spans rows or columns in an HTML table, Microsoft Access 2000 (and later versions) duplicates the data in each cell, whereas Microsoft Excel 2000 (and later versions) stores the data in the first or upper-left cell, and then leaves other cells blank.
Reply With Quote  
Join Date: Nov 2006
Posts: 1
Reputation: Alex_f is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Alex_f Alex_f is offline Offline
Newbie Poster

Re: How to extract data from web databases?

  #18  
Nov 28th, 2006
You can also try SWExplorerAutomation SWEA (http://webunittesting.com).
Reply With Quote  
Join Date: Jan 2006
Posts: 4
Reputation: Asiima is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Asiima Asiima is offline Offline
Newbie Poster

Help Creating object data models in Mysql

  #19  
Nov 30th, 2006
Is it possible to use this command "create type ADDRESS as object ( Attribute list )" in Mysql?
Reply With Quote  
Join Date: Feb 2007
Posts: 1
Reputation: Tom01234 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Tom01234 Tom01234 is offline Offline
Newbie Poster

Solution Re: How to extract data from web databases?

  #20  
Feb 14th, 2007
There is a company http://www.knowlesys.com provide the custom extractor.
You can tell them your target website and requirements they will provide you the custom extractor.

You only need click the Start button to get the data in your local database.

Price is cheap and service is wonderful!:eek:
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Database Design Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Database Design Forum

All times are GMT -4. The time now is 11:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC