seothtt 1 Posted September 20, 2012 Report Share Posted September 20, 2012 I have a report page that I run for keywords in various categories, it returns those categories and if there are keywords it gives you a zip file for download. However, the form names are all the same for each row. So in the picture below, how would I say "for Name - 42349-2 click Download and then save that as 42349-2", then go to the next "Name"? http://magetipsntricks.info/downloads/downloadpage.png Here's the source code for this portion: <table> <tr><th class="table-header light">Name</th><th class="table-header light">Category</th><th class="table-header light">Queued</th><th class="table-header light">Started</th><th class="table-header light">Time (h:m:s)</th><th class="table-header light">Items / Combinations</th><th class="table-header light">Status</th><th class="table-header light">Delete / Re-Queue</th></tr> <tr class="table-row"><td><a href="report_details.php?id=340697">42349-2</a></td><td>42349</td><td>20/09 4:59</td><td>Yes</td><td>0:00:01</td><td>1758 / 68</td><td><a href="/spellbook/keywords/reports/340697-505b2d933a562.csv.zip">Download</a></td><td class="center"><a href="index.php?restart=340697"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340697"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340696">42349-1</a></td><td>42349</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>1758 / 105</td><td><a href="/spellbook/keywords/reports/340696-505b2d1aee0be.csv.zip">Download</a></td><td class="center"><a href="index.php?restart=340696"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340696"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340695">117416-2</a></td><td>117416</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>1249 / 23</td><td><a href="/spellbook/keywords/reports/340695-505b2ca357e7f.csv.zip">Download</a></td><td class="center"><a href="index.php?restart=340695"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340695"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340694">117416-1</a></td><td>117416</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>1249 / 54</td><td><a href="/spellbook/keywords/reports/340694-505b2c2a7549a.csv.zip">Download</a></td><td class="center"><a href="index.php?restart=340694"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340694"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340693">177021-2</a></td><td>177021</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>0 / 0</td><td>No items</td><td class="center"> <a href="index.php?restart=340693"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340693"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340692">177021-1</a></td><td>177021</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>0 / 0</td><td>No items</td><td class="center"> <a href="index.php?restart=340692"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340692"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340691">42213-2</a></td><td>42213</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>5028 / 87</td><td><a href="/spellbook/keywords/reports/340691-505b2ac2ecb96.csv.zip">Download</a></td><td class="center"><a href="index.php?restart=340691"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340691"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" /></a></td></tr> <tr class="table-row"><td><a href="report_details.php?id=340690">42213-1</a></td><td>42213</td><td>20/09 4:58</td><td>Yes</td><td>0:00:01</td><td>5028 / 250</td><td><a href="/spellbook/keywords/reports/340690-505b2a4b3de7a.csv.zip">Download</a></td><td class="center"><a href="index.php?restart=340690"><img src="images/refresh.png" width="16" height="16" alt="Re-Queue Report" title="Re-Queue Report" /></a> <a href="index.php?delete=340690"><img src="images/delete.png" width="16" height="16" alt="Delete Report" title="Delete Report" /></a></td></tr></Table> Thanks,Richard Quote Link to post Share on other sites
Legend 181 Posted September 20, 2012 Report Share Posted September 20, 2012 You can scrape the hrefs to a list and then go back and download them all... 1 Quote Link to post Share on other sites
seothtt 1 Posted September 20, 2012 Author Report Share Posted September 20, 2012 How would I then save the hrefs as the Name? If I scraped the names, and then scraped the hrefs, they should be in the same order. Could I then add them to a list to pull them together? Quote Link to post Share on other sites
Legend 181 Posted September 20, 2012 Report Share Posted September 20, 2012 I believe the bot I built for that site used a spreadsheet... so it kept the keyword in one column and the href in the next... then when it went through to download, it downloaded the href and named the file with the keyword. I also used more descriptive names... like shoes 2, shoes 3 to separate 2 word and 3 word keywords. Should be pretty easy... if not I'll have a look and see if I can find it tomorrow... its way past my bedtime... 1 Quote Link to post Share on other sites
seothtt 1 Posted September 20, 2012 Author Report Share Posted September 20, 2012 Cool, let me see what I can do with it. Thanks for the insight. Richard Quote Link to post Share on other sites
seothtt 1 Posted September 20, 2012 Author Report Share Posted September 20, 2012 I have it working for the most part, now the issue of actually click on the href and saving the file down. When I use the click command to click on the href, it pops up a box on my pc to save the file. How do I tell it inside ubot what name to use and where to save it.? Richard Quote Link to post Share on other sites
seothtt 1 Posted September 20, 2012 Author Report Share Posted September 20, 2012 Figured it out, using the download file vs the Click. Thanks,Richard Quote Link to post Share on other sites
seothtt 1 Posted September 20, 2012 Author Report Share Posted September 20, 2012 Well I got that one working, thanks DuaneF for your input. Richard Quote Link to post Share on other sites
Legend 181 Posted September 21, 2012 Report Share Posted September 21, 2012 Well I got that one working, thanks DuaneF for your input. Richard anytime... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.