Make a PHP script that will scrap lyrics of certain artists from Lyrics.com. The scraper is quite a basic one, except that I need it to work with main & remote script.
Main script is the one that does all the data extraction and processing. Remote script merely acts as a proxy.
You pass the info about an artist and remote script locations (in array) to a function in Main script, which then calls the remote scripts and passes the info about what to scrap to remote scripts. Remote scripts then scrap the info from [url removed, login to view] and return it back to Main script in raw source code. Main script then extracts the lyrics.
On [url removed, login to view] on top of the page there is a search form. If you enter an artist's name the website will return the link to the artist's page. When you click on that link a page opens with all the lyrics of that artist. Scrap all the lyrics titles and the lyrics itself. Store them into an array.
Regarding remote script: I will put copies of them on multiple (60) hosts, because they will only act as proxies in order to prevent banning from Lyrics.com.
So the remote script must only receive this info: post method on [url removed, login to view] form (GET or POST), form objects and their values, submit URL. Then it has to only return the raw HTML code back to main script which will do all the extracting.
Why I need only this simple functionality inside remote script is that in case [url removed, login to view] ever changes the form in any way, I only need to update/upload main script and not all copies of remote scripts on all the servers. This way I can control everything from the main script.
One more thing. Main script has to be a class, so that I can easily integrate it into my system.