H
homepricemaps
hey folks,
have a logic question for you. appreciate the help in advance.
i am scraping 3 pieces of information from the html namely the food
name , store name and price. and i am doing this for many different
food items found ni the html including pizza, burgers, fries etc. what
i want is to write out to a text file in the following order:
pizza, pizza hut, 3.00
burgers, burger king, 4.00
noodles, panda inn, 2.00
html is below. does anyone have good recommendation for how to setup
the code in such a manner where it writes to the text file in th order
listed previously? any attempt i have made seems to write to the file
like this
noodles, panda inn, 3
noodles, panda inn, 4
noodles, panda inn, 2
HTML
<tr class="base"><td class="tall"><a name="D0L1" "href="his/food"
target="_blank">
<td class="desc"><h2 id="foodName">pizza</h2>
<div class="store"><a name="D0L3" "href="/xPopups/nojs"
target="_blank"><b>pizza hutt</b></a></div>
<td class="price">3.00</td>
<tr>
have a logic question for you. appreciate the help in advance.
i am scraping 3 pieces of information from the html namely the food
name , store name and price. and i am doing this for many different
food items found ni the html including pizza, burgers, fries etc. what
i want is to write out to a text file in the following order:
pizza, pizza hut, 3.00
burgers, burger king, 4.00
noodles, panda inn, 2.00
html is below. does anyone have good recommendation for how to setup
the code in such a manner where it writes to the text file in th order
listed previously? any attempt i have made seems to write to the file
like this
noodles, panda inn, 3
noodles, panda inn, 4
noodles, panda inn, 2
HTML
<tr class="base"><td class="tall"><a name="D0L1" "href="his/food"
target="_blank">
<td class="desc"><h2 id="foodName">pizza</h2>
<div class="store"><a name="D0L3" "href="/xPopups/nojs"
target="_blank"><b>pizza hutt</b></a></div>
<td class="price">3.00</td>
<tr>