Trying To Create Database
Posted: Wed Feb 24, 2010 9:04 pm
[URL REDACTED]
This is the website I am trying to mine.
Here is my problem.
I am trying to run through all the SKUs on the page. You will notice when you go to a product it has a SKU # in the title bar. There are several issues besides how long it takes just to run through all of the combinations above.
1. The skus vary. Some are 5 long some are 9 long with a different combination of letters and numbers.
2. Some have dashes.
3. Some are just words like 'battery105'.
How do I go about going through all of the skus available without running a loop like that for everything?
Any help is very appreciated. Thank you.
This is the website I am trying to mine.
Here is my problem.
Code: Select all
<?php
foreach(range('A','Z') as $a) {
foreach(range('A','Z')as $b) {
for($c = 0; $c < 10; $c += 1) {
for($d = 0; $d < 10; $d += 1) {
for($e = 0; $e < 10; $e += 1) {
echo $a;
echo $b;
echo $c;
echo $d;
echo $e;
echo "</br>";
}
}
}
}
}
?>
1. The skus vary. Some are 5 long some are 9 long with a different combination of letters and numbers.
2. Some have dashes.
3. Some are just words like 'battery105'.
How do I go about going through all of the skus available without running a loop like that for everything?
Any help is very appreciated. Thank you.