|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--corpus.gobbler.Gobbler
Gobbler.java 2.1 28/06/2002 Rapid automated corpus identification via keywords and search engines.
Field Summary | |
static int |
GOOGLEAPI
Perform search using the google API. |
static int |
HTTPGET
Perform search using a HTTP GET. |
java.lang.String |
outputpath
Where are the output URL's stored. |
Constructor Summary | |
Gobbler(boolean useUI)
Constructor for the Gobbler object. |
Method Summary | |
void |
html(java.lang.String data)
Display HTML code. |
static void |
main(java.lang.String[] args)
Start the Gobbler going. |
void |
newEstimate(int ne)
Update user interface with the new estimate for the number of results availble. |
void |
performSearch(java.lang.String searchterm,
int numperpage,
int targetnum,
java.lang.String filetype)
Starts interaction with Google. |
void |
setSearchMethod(int i)
GOOGLEAPI or HTTPGET |
void |
status(java.lang.String s)
Display useful information. |
void |
status(java.lang.String s,
boolean error)
|
void |
store(java.lang.String outputfile,
java.lang.String[] urls)
Given an array of urls this will store them in a file. |
void |
urlCountTick()
Update GUI counter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String outputpath
public static final int GOOGLEAPI
public static final int HTTPGET
Constructor Detail |
public Gobbler(boolean useUI)
Method Detail |
public void performSearch(java.lang.String searchterm, int numperpage, int targetnum, java.lang.String filetype)
searchterm
- A string for what being looked for.numperpage
- The number of results per google page.targetnum
- The total number of results wanted. (Will be reduced if it exceeds the total number of results available)filetype
- The file extension to limit to. I suggest xls.public void store(java.lang.String outputfile, java.lang.String[] urls)
outputfile
- The name of the fileurls
- The urls read from Googlepublic void status(java.lang.String s)
public void status(java.lang.String s, boolean error)
public void newEstimate(int ne)
public void html(java.lang.String data)
public void urlCountTick()
public void setSearchMethod(int i)
public static void main(java.lang.String[] args)
|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |