Cnotey 3 Posted November 28, 2012 Report Share Posted November 28, 2012 Hey everyone, Cnotey here. I'm picking up ubot pretty fast since purchasing it a few days ago. I am having an issue with one thing though. I am trying to scrape a username from emails I receive, verify them, and save the usernames to a .CSV file. For some reason I think I don't quite grasp the concept of lists and how to properly use them. Anyways, so I have hundreds of emails that all have the same subject and content, the only thing that changes is the account activation link and the username. The script I set up only seems to scrape one username multiple times. My script looks like the attached file. Can anyone point me in the right direction? Quote Link to post Share on other sites
merkaba 36 Posted November 28, 2012 Report Share Posted November 28, 2012 connect to mail server("IMAP With SSL", "username@gmail.com", "password", "imap.gmail.com", 993) { create table from emails(&emails) } set(#row, 0, "Global") loop($table total rows(&emails)) { add item to list(%usernames, $table cell(&emails, #row, "edit this to what ever is correct"), "Delete", "Global") increment(#row) } I think all you're really missing is a loop and incrementing the row. This should give you an idea at the very least on how to deal with it. 1 Quote Link to post Share on other sites
Cnotey 3 Posted November 28, 2012 Author Report Share Posted November 28, 2012 Of course. Not sure how I didn't see that. Thank you for your help. I must be getting too glazed over with all the ubotting I've been doing since I bought it. It's addictive. I've even made bots for non-IM related stuff haha. 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.