Update README.md to include SerpApiSearch sample
Many customers are confused about how to use this library with other search engines outside Google Search. This PR includes the generic SerpApiSearch class instruction.
For example: https://github.com/serpapi/google-search-results-java/issues/23
Thank you @tanys123 for the feedback. I haven't been able to test it locally. Still struggling with installing this library.
Thank you @tanys123 for the feedback. I haven't been able to test it locally. Still struggling with installing this library.
Yea, it is not a straightforward one, I guess we should take some time to clean up the repo. I was also banging here and there to get it to work.
I am able to get it to work this way:
- Following the Makefile in the
/demofolder, you should first runinit cleanthenbuild(yea, notdep). - Even though you get error from
buildstep, but the java library files should be downloaded in the${root}/buildfolder, then this time rundep-- if it fails, just manually copy thelibsfolder into/demo - Update the dependencies settings in
build.gradle. The important part is to replace the remote repo with the local version (implementation fileTree(dir: "./libs", includes: ['*.jar']))
--- a/demo/build.gradle
+++ b/demo/build.gradle
dependencies {
- // implementation fileTree(dir: "./libs", includes: ['*.jar'])
+ // Use local JAR files from libs directory
+ implementation fileTree(dir: "./libs", includes: ['*.jar'])
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
- implementation 'com.github.serpapi:google-search-results-java:2.0.3'
}
- Now running
make buildshould work, which mean runningmake runshould work too.