nachdem ich eine Website mittels mechanize/Beautifulsoup nach Angeboten durchsucht habe, möchte ich bestimmte Artikel in den Warenkorb legen.
Der html-Code sieht für diesen Artikel so aus:
Wenn ich es richtig verstehe, löst der Button Javascript aus. Der entsprechende html-Code beginnt in der Zeile "name="specForm41872...".<tr>
<td class="virgin"><a href="index.html?mainPage=showSellerChart&idInfoUser=10239">arion74</a></td>
<td class="sellerInfo"><img class="icon" src="img/user_private.png" alt=""
onmouseover="showMsgBox(window.event,'Privates Mitglied')"
onmouseout="hideMsgBox()"></td>
<td class="sellerInfo"><img class="icon" src="img/countryIcons/D.png" alt=""
onmouseover="showMsgBox(window.event,'Artikelstandort: Deutschland')"
onmouseout="hideMsgBox()"></td>
<td class="evalGrade">150</td>
</tr>
</table></td><td class="centered topRow"><a href="index.html?mainPage=showCardQualityChart" target="_blank">
<img class="icon" src="img/cardstateicons/MT.png" alt=""
onmouseover="showMsgBox(window.event,'Mint')"
onmouseout="hideMsgBox()"></a></td><td class="centered topRow"><img class="flagIcon" src="img/flagicons/1.png" alt=""
onmouseover="showMsgBox(window.event,'Englisch')"
onmouseout="hideMsgBox()"></td><td class="centered topRow"></td><td class="centered topRow"></td><td class="topRow"></td><td class="alignRight nowrap topRow">0,01 €</td><td class="centered topRow">5</td><td class="centered outerRight topRow"><form name="specForm418720" method="GET" action="index.html"><input type="hidden" name="mainPage" value="showProduct"><input type="hidden" name="idCategory" value="1"><input type="hidden" name="idProduct" value="17889"><input type="hidden" name="action" value="addSpecimenToShoppingCart"><input type="hidden" name="specimenId" value="418720"><table class="virgin"><tr><td class="virgin_padded"><select class="amount" name="amount" size="1" ><option selected value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select></td><td class="virgin_padded"><input type="image" src="img/shoppingbasket_add.png"
onmouseover="showMsgBox(window.event,'Karte(n) in den Einkaufswagen legen')"
onmouseout="hideMsgBox()"
alt="Submit"></td></tr></table></form></td></tr><tr class="even thick"><td class="outerLeft"><table>
<tr>
Wie kann ich diesen Button (per mechanize) betätigen?
Das ganze betrifft z.B. die folgende Seite:
http://www.magickartenmarkt.de/index.ph ... duct=17889
Mit dem Unterschied, dass am Ende jeder Zeile der oben genannte Button erscheint, sofern man eingeloggt ist.
Gruß
Jochen