WiseLoop PHP Web Media Grabber 3.1.1
Advanced PHP web resources extractor
wlWmgJsGrabber Class Reference
Inheritance diagram for wlWmgJsGrabber:

Public Member Functions

 __construct ($url=true)

Detailed Description

WiseLoop JavaScript Grabber Processor class definition
This class is designed to retrieve external JavaScript files referred by an url page and stores them in the $_validMedia array variable.
It uses the base class wlWmgProcessor capabilities to search an url page for external JavaScript files by checking its script src tags and their content-type HTTP response headers.
WiseLoop JavaScript Grabber main features:

  • grab external JavaScript source code files included by the targeted url page;
  • javascript files search and identification by the HTML content-type response header: the grabbing engine is able to identify beyound the obvious JavaScript resources having the .js file extension - it will find the JavaScript files that have different file extesion or no extension at all; the identification is made by checking the server response header when pinging the tested JavaScript file resource;
  • media url name (filename) filtering: only those JavaScript files having or containing in their url names some specified strings will be included in the grabbing results;
  • media size filtering: only those JavaScript files having the specified size (in bytes) will be included in the grabbing results;
  • HTML area searching: the grabbing engine is able to search for JavaScript files only inside a designated HTML area specified by a tag; in this way you can skip grabbing from the start any unwanted JavaScript files by narrowing the full HTML target page to a smaller area consisting of a tag content; an incomplete tag (tag slice) can be specified also, the tag will autocomplete depending on the contextual HTML content;
  • downloading capability: the WiseLoop Video Grabber is able to download the grabbed JavaScript files to the local server, so those scripts can be referred or used as local resources in the future;
Note:
WiseLoop takes no responsibility if the targeted url changes its tag structure or its HTML DOM tree, resulting in unexpected data retrieval; this will not be considered as malfunction or bug, and you should check the targeted url's HTML DOM tree for changes and modify the code that instatiates this class or any inherited classes.
Also, WiseLoop assumes no responsibility for any abusive use of this class and/or violation of terms of usage of the target url.
See also:
wlWmgProcessor
Author:
WiseLoop

Constructor & Destructor Documentation

__construct ( url = true)

Constructor.
Creates a wlWmgJsGrabber object.

Parameters:
string$urlthe target page url
Returns:
void

Reimplemented from wlWmgProcessor.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables