Script to download product information from a web site and save in an SQL Server DB
- or -
Post a project like this4056
£100(approx. $126)
- Posted:
- Proposals: 3
- Remote
- #221523
- Awarded
Description
Experience Level: Intermediate
We need a script which will take product information from pages on a web site and insert it into a SQL Server database.
The script will be used on several web sites, all of which are structured the same.
Examples:-
http://www.historicflyingclothing.com/shop.php
http://www.battalionmilitaria.co.uk/shop.php
http://www.grandads-kitbag.com/shop.php
The script must loop through the list of categories found in the drop down menu on the top right. For each category the script will:-
1) Create the category in the SQL server database in a table called tblShopProdCat (this already exists)
2) Then it will loop through each item and:-
a) Add the item to the database into a table called tblShopProd (this already exists). The following information will need to be ripped from the page:-
- Name of the item
- Description of the item
- Code
- Price
b) Download each of the pictures for the item (some of them have multiple pictures), and rename the filename of the picture to match the id for the new record which has been created in tblShopProd. The file names must be in the format of:-
ID_IMAGENUMBER_large.jpg
eg:-
879379873298473_1_large.jpg
879379873298473_2_large.jpg
879379873298473_3_large.jpg
c) Add a record in tblShopProdCatLink (this already exists) which links the product to the category
The script will be used on several web sites, all of which are structured the same.
Examples:-
http://www.historicflyingclothing.com/shop.php
http://www.battalionmilitaria.co.uk/shop.php
http://www.grandads-kitbag.com/shop.php
The script must loop through the list of categories found in the drop down menu on the top right. For each category the script will:-
1) Create the category in the SQL server database in a table called tblShopProdCat (this already exists)
2) Then it will loop through each item and:-
a) Add the item to the database into a table called tblShopProd (this already exists). The following information will need to be ripped from the page:-
- Name of the item
- Description of the item
- Code
- Price
b) Download each of the pictures for the item (some of them have multiple pictures), and rename the filename of the picture to match the id for the new record which has been created in tblShopProd. The file names must be in the format of:-
ID_IMAGENUMBER_large.jpg
eg:-
879379873298473_1_large.jpg
879379873298473_2_large.jpg
879379873298473_3_large.jpg
c) Add a record in tblShopProdCatLink (this already exists) which links the product to the category
Rob W.
96% (5)Projects Completed
5
Freelancers worked with
5
Projects awarded
46%
Last project
3 May 2013
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies