Joe Yost 4 Posted August 9, 2012 Report Share Posted August 9, 2012 (edited) hello. I bought this software a while back and I'm doing fairly well with it. However I'm having some problems with a particular part that maybe you can shed some light on. I've attached a .png of a ticket desk that I manage and here is my dilemma. based on the subject on the ticket I need to do certain things. Sometimes that information might be enclosed inside the ticket. Keywords such as "set up my hosting" or "cancel membership" could be keywords that would allow ubot to determine what ticket to do what with. Once ubot determines for instance that a particular ticket is about setting up hosting for instance, I need to scrape some things from the ticket which include ticket id, email address, name, domain name etc. Thats not the part I'm having so much trouble with. Actually what I need help with is picking and opening the correct ticket depending on the criteria. Once I've opened the ticket I can handle much of it from there. But, do you guys have any idea how I can select the correct ticket? Like, its going to have to go through them all and somehow click the ticket id that its looking for. those ticket id's are clickable and take you into the ticket itself where I can scrape the rest of the data - but how can ubot do this? I have a ton of work on this ticket site and hopefully I can do this. thanks in advance. I just copied and pasted below what the html looks like for the ticket desk. I can find the keywords I'm looking for but how would I copy its corresponding ticket id number you think? <tr title="Name Judy ScxxxxLogin id ladyxxxxxpaypal email xxxxxline@yahoo.com or ladyxxxx@gmail.com..."> <td class="admin_white"><input type="checkbox" name="id[]" value="1169"></td> <td class="admin_white"><a href="admin_ticket.php?track=JZ574843GY&Refresh=22886">JZ574843GY</a></td> <td class="admin_white">2012-08-08<br>07:30:48</td> <td class="admin_white">Judy Scxxxxx</td> <td class="admin_white"><a href="admin_ticket.php?track=JZ574843GY&Refresh=22886">Please cancel my membership</a></td> <td class="admin_white"><span class="open">New</span></td> <td class="admin_white">Judy Scxxxxx</td> <td class="admin_white" style="text-align:center; white-space:nowrap;"><img src="../img/flag_medium.png" width="16" height="16" alt="Priority: Medium" title="Priority: Medium" border="0"> </td> </tr> <tr title="Member Name : Muhammad xxxxx AsxxxxMember Login ID : talxxxxxMember email : talha.xxxxx9@gmail.com..."> <td class="admin_gray"><input type="checkbox" name="id[]" value="1165"></td> <td class="admin_gray"><a href="admin_ticket.php?track=W9WD9TBHMR&Refresh=22886">W9WD9TBHMR</a></td> <td class="admin_gray">2012-08-08<br>01:24:46</td> <td class="admin_gray">Muhammad xxxxx Asxxxx</td> <td class="admin_gray"><span class="assignedyou" title="Assigned to you">*</span> <a href="admin_ticket.php?track=W9WD9TBHMR&Refresh=22886">Please Cancel My Membership</a></td> <td class="admin_gray"><span class="waitingreply">Waiting reply</span></td> <td class="admin_gray">Muhammad xxxxx Asxxxx</td> <td class="admin_gray" style="text-align:center; white-space:nowrap;"><img src="../img/flag_high.png" width="16" height="16" alt="Priority: High" title="Priority: High" border="0"> </td> </tr> <tr title="Hi, I want to recall my login details for FileZilla because after reinstallation of my Win.Xp everything works fine but I didn´t succeed after the re-installation of FileZilla to login using my log..."> <td class="admin_white"><input type="checkbox" name="id[]" value="1159"></td> <td class="admin_white"><a href="admin_ticket.php?track=T1UZX8BEQL&Refresh=22886">T1UZX8BEQL</a></td> <td class="admin_white">2012-08-04<br>18:04:10</td> <td class="admin_white">Hans Bxxxxxxxm</td> <td class="admin_white"><span class="assignedyou" title="Assigned to you">*</span> <a href="admin_ticket.php?track=T1UZX8BEQL&Refresh=22886">Login details for FileZilla?</a></td> <td class="admin_white"><span class="replied">Replied</span></td> <td class="admin_white">John Doe</td> <td class="admin_white" style="text-align:center; white-space:nowrap;"><img src="../img/flag_high.png" width="16" height="16" alt="Priority: High" title="Priority: High" border="0"> </td> </tr> my guess is it would involve wildcards and I'm not sure how the offset works but I have a hunch maybe something like that since the id's corresponding to the keywords that this bot would be looking for would be determined by the location to the keywords. all of the tickets are all bunched together when you look at the html and the only way I can tell which id is for what is because its within that group. don't know - i'm lost on this one, but if I could figure this out it would be killer because a lot of my work requires searching for stuff like this, documenting, emailing etc depending on the ticket. I also moderate a forum and I suspect this would come in handy for that too. Edited August 9, 2012 by botdude Quote Link to post Share on other sites
MiriamMB 63 Posted August 9, 2012 Report Share Posted August 9, 2012 Hey there, The wild cards should help you isolate what you're trying to scrape a lot better. This written script reference on the selectors should help you with the issue: http://www.ubotstudio.com/files/ScriptReferences//TheSelectors.pdf Tutorial 8 also details how to use the selectors to find appropriate information: http://www.ubotstudio.com/tutorials Check them out to see if they are able to clarify any areas of confusion. 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.