webDOMinator - Minion Scripting Language Reference

Search a Command:
<< Back to Information Lists

list

Usage...
list:handle[:optionsfile;gatherfile]
Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.
This applies to webDOM version 2.5.1 and above.

User Comments on list

How to use Virtual Lists

Written by: webDOMinator 3 years and 2 months ago

To create a simple virtual list to gather information to, you can use the list command along with a gather command using the list handle:

Code

list:myemails:sys.listdir^gatheremails.pop
gather:myemails

This creates not only a list in virtual memory where information would be gathered to, but in the "lists" folder of whichever plugin that is loaded, (or in the main "lists" folder located in the root webDOM directory,) a ".list" file is saved with the same name as the specified handle, in this case "myemails". The file placement is default when the "gatherfile" argument to the list command is omitted.

A simpler approach can be used in coding as well. Let's say that a plugin is already loaded, this means that most likely, the gathering options would already be set. If the "optionsfile" argument on the list command is omitted as well, the list's gather options are set to the currently loaded gather options, so for instance, you can leave out the ".pop" file if you just want to use the default plugin gather options.
Code

//load up facebook
loadplugin:facebook

//log in to facebook
login

//load up my saved list of friend ID's into the info list section
loadlist:myfriends

//load up the virtual list where I want emails to go... lists are shared across scripts
list:friendemails

//Get the emails of all of my friends from the "myfriends" list
ca_all:Get Emails

Code

//************ GET EMAIL SCRIPT
//This is a custom action just called "Get Emails"
//I changed it to use the "friendemails" list
#name:Get Emails
navigate:http://www.facebook.com/profile.php?v=info&id=^wd.curinfo
regexgather:friendemails:\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b

This uses the regexgather command which matches a regular expression pattern and puts all the matches in the list. In this example, that's the pattern for emails, taken from @driven's profile. What these two scripts do is, the first one, logs in to facebook and loads up the main info list

Post a Comment About the "list" Command
Title:
Comment:
Post as Anonymous:
User Login
Username:
Email:
Password:
webDOMinator is copyright ©2008, 2009, 2010, 2011, 2012 Nathaniel D. Gibson. All Rights Reserved.
Contact | Tutorials | Forum
By using webDOMinator you are taking all liability in to your own hands. Nathaniel D. Gibson is not responsible for any damages, loss, or defamation (legal or otherwise) caused to you or your business from using this program. Nathaniel D. Gibson is not associated with, affiliated with, nor responsible for the content submitted and displayed by users of this site.