Maximum Traffic by NerdLib Software

User's Guide: Content Sources

Setup URLs to fetch content from, and scripts to parse the content into a usable form.

Content Sources

The list of content sources is split into two different types - Static and Custom. Static sources are updated each time you do an automatic update. If you wish to modify a Static source you should Duplicate it and make a new copy of the parse script (in scripts/content/ folder inside program folder) to use with the new Custom source. This prevents automatic updates from overwriting your customized source scripts. It's also recommended you prefix custom scripts with 'custom_' (ex: custom_ScriptName.js) so that they won't be scanned for updates.

New

Clears the content source fields for a new entry.

Duplicate

Makes a copy of the content source.

Delete

Deletes the selected content source.

Rename

Renames the loaded content source.

Method

The HTTP method to use (GET/POST).

Timeout

Maximum time in seconds to wait for a response from the source.

Feed URL

The URL used in the request.

Referer URL

The referring URL to send along with the request.

Parse Script

The JScript .NET parse script to use with this source. To refresh this list, leave the Content Sources screen and return to it.

Tip: You should always save your changes (if you wish you save them) before leaving the Content Sources screen.

Fetch Referer URL

This will fetch the Referer URL (to register a website hit) before fetching the Feed URL. The referer URL is not parsed, it is just requested from the webserver to simulate a 'real hit' if desired.

Request Variables

Here you can Add, Edit, Clear and Remove the request variables used when requesting the Feed URL. You can specify Request (GET/POST) variables or Cookie variables.

Tip: You can use the following %TAGS% in request variables:

%KEYWORD%		Replaced with the current keyword.
%RAND(x,y)%	Replaced with a random number between x and y.

Test

Tests the open content source and displays the parsed data in a preview window.

Save

Saves the open content source.

Scripting Notes

A script will receive the data returned from the HTTP request, and must be a properly formatted PageCraft parse script. The scripts shipped with the software can be examined for an example of the Parse class and Parse method which are the minimum required for a script to function. All scripts should populate and return a properly formed DataSet which can also be seen by examining the default parse scripts.

JScript .NET Manual: JScript .NET Language Reference (JScript)

We can not be held responsible for the use of any third party scripts.