From d781bd321e14b5d57bf1e426e95965483e90e5ee Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Wed, 18 Dec 2019 16:52:44 -0500 Subject: [PATCH] look at operating based on a loop --- build_sql.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_sql.sh b/build_sql.sh index 76783a0..a44225d 100644 --- a/build_sql.sh +++ b/build_sql.sh @@ -1,7 +1,8 @@ #!/bin/bash #greenhouse decorative -code=g_deco +for f in g_basket g_deco g_round g_square g_support g_trays n_flats n_round c_bohemian +code=f url=https://hc-companies.com/planter_category/decorative-containers #wget https://hc-companies.com/planter_category/decorative-containers/ -O g_deco.html echo "INSERT INTO scrape.raw (code,url, html) SELECT '$code' code, '$url' url, \$\$" | cat - "$code.html" >temp