|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDeciderBase nz.ac.waikato.mcennis.rat.graph.artist.decider.GoogleDecider
public class GoogleDecider
Class for utilizing a Google music finder web query to determine if a string matches an artist name or not. Note: this algorithm hits Google's servers enough that it rapidly triggers a banning - seeks permission before using.
Method Summary | |
---|---|
protected void |
lookup(java.lang.String name)
Looks up the artist name on Google using a Google parser embedded in a single threaded CrawlerBase crawler. |
static GoogleDecider |
newInstance()
Returns a static instance of this variable |
void |
setProxy(boolean p)
Should the web crawler use a proxy or not. |
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDeciderBase |
---|
addArtist, addChecked, isArtist, isChecked, output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GoogleDecider newInstance()
protected void lookup(java.lang.String name)
lookup
in class ArtistDeciderBase
name
- potential artist name.public void setProxy(boolean p)
p
- true/false use a proxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |