I did a little Python scripting last night and I think I've got something that may do some of what zakky
If you keep your two sets of words/phrases in two seperate ASCII text files this Python script will: 1) OR all of the words/phrases in file #1 together, 2) OR all of the words/phrases in file #2 together, 3) AND the results of file #1 and file #2 and 4) updates the "QueryString" entry of the "[Search Channel Config]" section of the specified CHANNEL file.
This was only tested on my stock copy of Awasu 2.3 Pro.
Builds this search criteria:
Code: Select all
(fraud OR litigation OR "class action") AND (renaissance OR farallon OR caxton)
and updates the QueryString" entry of the "[Search Channel Config]" section of the specified CHANNEL file with the built search criteria.
Code: Select all
List1 = "List1.txt"
List2 = "List2.txt"
ChannelFile = "C:\\Documents and Settings\\UserName\\Application Data\\Awasu\\Channels\\MySearchChannel.channel"
Criteria = ""
# initilize local variables
arr = 
str = ""
InputFile = open(FilePath, "r")
# read each line into an array, get rid of EOL character
for line in InputFile.readlines():
# concatenate each word or phrase into a string delimited with " OR "
# if the line contains a phrase, wrap it in quotation marks
for i in range(len(arr)):
if arr[i].find(" ") > 0:
arr[i] = "\"" + arr[i] + "\""
str += arr[i] + " OR "
# remove last " OR " and wrap with parenthesis.
str = "(" + str[0:len(str) - 4] + ")"
def UpdateChannelFile(ChannelFilePath, NewCriteria):
win32api.WriteProfileVal("Search Channel Config", "QueryString", NewCriteria, ChannelFilePath)
# main body of program
if __name__ == '__main__':
Criteria = ReadListFile(List1) + " AND " + ReadListFile(List2)
You'll need to change the file path values of the "List1", "List2" and "ChannelFile" variables (their basically contstants in this script
I think you'll find that Awasu will get you much closer to your desired solution than any other product on the market at a similar low cost.[/b]