Wednesday, September 20, 2017

CSV file with references to checked bookmarks

User question:
> I'm trying to find out if there is a way to have Website-Watcher 
> create a file that would consist of information about bookmarks 
> where an update is detected.  I'm sure there must be a way to do 
> this but after looking at the help document and the forums for a 
> while I wasn't able to figure it out.  I run a daily check of all my 
> bookmarks and I would like that check to produce an excel or CSV 
> file that contained the URL, the three Info Fields, a path to the 
> highlighted version of the page and the date and time of the check.  
> Is there a way to do that? 

yes, you can use the Report/Export feature (Tools menu) to generate a CSV file with that information.

First you have to create a CSV template with a text editor, this template must contain the fields you want to export. An example template can be found at http://www.aignes.com/wswhelp/help_report_examplecsv.htm

Supported variables can be found at http://www.aignes.com/wswhelp/help_report_datafieldbookmarks.htm

In your case you would need the variables:
{wsw_url_url}
{wsw_url_field1}
{wsw_url_field2}
{wsw_url_field3}
{wsw_url_path_filename_chg}
{wsw_url_date_checked}

Monday, September 11, 2017

Monitor data in drop down boxes

User question:
> I monitor a page that has important information in drop down boxes. 
> I know there is a plugin to only monitor the OPTION tags, but I also 
> need the information that is displayed in the page. Any way to do 
> this?

One way would be to duplicate the bookmark and check one copy with the plugin "Monitor OPTION tags", but this is definitely not an elegant solution.

What I would recommend is to use a private plugin that eliminates the drop down boxes and inserts the entries of the drop down boxes as data into the web page. Then you have both, the page content and the drop down box entries. Here's a plugin code that you can use as starting point.

1. Open the bookmark properties
2. Select the Advanced tab
3. Select "Plugin" on the left side
4. Click the button "Create Private Plugin"
5. Enter the following plugin code

Sub Wsw_PreProcessPage(Handle, ByRef sMemWeb, ByRef sStatusMessage, ByRef iStatusCode)
   sMemWeb = ReplaceWildcard(sMemWeb, "<option*>", "(")
   sMemWeb = ReplaceWildcard(sMemWeb, "</option*>", ") ")
   sMemWeb = DeleteAllWildcardMatches(sMemWeb, "<select*>")
   sMemWeb = DeleteAllWildcardMatches(sMemWeb, "</select*>")
End Sub