PHP Web Audio Grabber
The PHP Web Audio Grabber is a PHP class that is included in the PHP Web Media Grabber software product item.
It is able to search and grab audio files referred (contained) by an url and then outputs an array containing the grabbing results.
This sample application uses the audio grabbing engine provided by the WiseLoop PHP Web Media Grabber to search an url page for audio links by checking its a href tags, grabs the founded audio files, and then, displays the array returned by the grabbing engine.
WiseLoop PHP Web Audio Grabber main features:
- Audio media search and identification by the HTML content-type response header: the grabbing engine is able to identify more than the obvious audio resources having the most common audio file extensions - it will find the audio files that have no valid audio extensions or no extensions at all; the identification is made by checking the server response header when pinging the tested media resource.
- Audio files extension filtering: only those audio files having the specified extensions will be included in the grabbing results.
- Media url name (filename) filtering: only those audios having or containing in their url names some specified strings will be included in the grabbing results.
- Media size filtering: only those audio files having the specified size (in bytes) will be included in the grabbing results.
- Media count limiter: number of grabbed audios will be limited to a specified value.
- HTML area searching: the grabbing engine is able to search for audios only inside a designated HTML area specified by a tag; in this way you can skip grabbing from the start any unwanted audios 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 auto complete depending on the contextual HTML content.
- Downloading capability: the WiseLoop PHP Audio Grabber is able to download the grabbed audios to the local server, so those files can be referred or used as local resources in the future.