Sunday, February 19, 2017

Export/Import single bookmarks

User question:
> I'd like to ask if there's a way to import bookmarks without 
> undergoing the whole restore function? I wanted to keep the original 
> bookmarks I have in my current database and the restore function 
> seems to erase them whenever I use it with another WSW zip file.

The backup/restore feature is based on the whole database.

To export/import single or multiple bookmarks, you have to use the features:

  • Export selected bookmarks to export file (*.zip)
  • Import bookmarks from export file (*.zip)



Friday, February 17, 2017

Problematic RSS feed with changing GUID

User question:
> I have an RSS feed that sometimes changes the guid 
> of items. The content is not changed, but WebSite-Watcher always 
> alerts an update in that case.

If an RSS feed changes important fields that are used to detect updates, you have to decide manually which fields should be used to detect updates.

The following screenshot shows a configuration to only get update notifications when the items title or pubdate have been changed.


Thursday, February 16, 2017

Notification on no-update for x-days

User question:
> I would like to receive notifications if there has not been an 
> update on a webpage for a specified number of days.
> Can this option be presently set?

Such a feature is not available as separate option, but you can do this via the plugin system.

With the example below, WebSite-Watcher will alert an update if the last change is more than 30 days ago.

'*******************************************************************************
Sub Wsw_BeforeCheck(Handle)
   ' Ensure that the page is always checked by content (avoid possible optimizations)
   Bookmark_SetProperty(Handle, "checkmethod", "content")
End Sub
'*******************************************************************************
Sub Wsw_CompareVersions(Handle, ByRef sMemWeb, ByRef sMemLocal, ByRef sStatusMessage, ByRef iStatusCode)
   
   Dim d, sLastChangeDate, nDayDiff
   
   ' Get the last change date
   sLastChangeDate = Bookmark_GetProperty(Handle, "last_change_date")
   
   ' Calculate the differences in days
   d = EncodeDate(Copy(sLastChangeDate, 1, 4), Copy(sLastChangeDate, 5, 2), Copy(sLastChangeDate, 7, 2))
   nDayDiff = Date - d
                                      
   ' Alert if the last change is more than 30 days ago
   If nDayDiff > 30 Then
      sStatusMessage = "Last change " + CStr(nDayDiff) + " ago"
      iStatusCode = 1
   End If
End Sub
'*******************************************************************************

To enter this plugin,
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 plugin code
6. Close and check the bookmark



BTW: It is planned to add a separate option for such a functionality in an upcoming 17.x release.

Tuesday, February 14, 2017

Watch filters with regular expressions

User question:
> I want to monitor the number of a news header and want to create a 
> watch filter, but I never learned Regex

You must not really understand regular expressions, most things can be created with the filter assistant and just a few mouse clicks.

1. Open the bookmark properties
2. Click the button Filter Assistant
3. Select the text you want to monitor
4. Click the button "New filter" and follow the assistant as shown in the following animation.



This will automatically create  a watch filter that is based on regular expressions. No further knowledge about regular expressions is required here.

Monday, February 13, 2017

WebSite-Watcher proxy configuration and the embedded Internet Explorer

User question:
> When I setup proxies in WebSite-Watcher, the built in browser shows 
> my static IP address when browsing http://www.whatismyip.com

The proxy configuration in WebSite-Watcher is only used for bookmarks that are checked with the check technology "Default".



The embedded Internet Explorer and bookmarks with the check technology "Internet Explorer/Browser" (or an Internet Explorer Macro) will always use the proxy configuration of Internet Explorer. It's not possible to use an other proxy as configured in Internet Explorer here.

Thursday, February 9, 2017

Message "Your browser is outdated"

User question:
> On several pages I get a message that I use an outdated web browser, 
> however I'm already on Internet Explorer 11. I have WebSite-Watcher 16.0

Please update to at least WebSite-Watcher 16.3

In version 16.3 we introduced a major improvement to the internal parser what makes WebSite-Watcher more compatible to the latest IE version. So updating to at least version 16.3 is required to get rid of these messages.

Wednesday, February 8, 2017

Sending e-mails: Display folder name

User question:
> For my global template, I have a bit at the top of the sent emails 
> which gives me some info about that bookmark, like this:-
> -----------
> Name: {name}
> Url: {url}
> Status: {status}
> -----------
> That works fine, but with so many bookmarks it would be useful if I 
> could also have the bookmark folder returned there too. 

You can use the variable {foldername}, this will be replaced with the folder name (without path).
If you want to use the absolute folder path, you can use the variable {folder}.

For example:
-----------
Folder: {foldername}
Name: {name}
Url: {url}
Status: {status}
-----------

All available variables for sending e-mails can be found at http://www.aignes.com/wswhelp/help_howto_sendmails.htm