Skip to content

Commit 1b670bb

Browse files
author
vlad-outscraper
committed
use the lastest versions by default
1 parent 51deedc commit 1b670bb

File tree

8 files changed

+30
-38
lines changed

8 files changed

+30
-38
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation 'com.github.outscraper:outscraper-java:v1.0.4'
18+
implementation 'com.github.outscraper:outscraper-java:v2.0.0'
1919
}
2020
```
2121
@@ -36,14 +36,14 @@ Add the dependency
3636
<dependency>
3737
<groupId>com.github.outscraper</groupId>
3838
<artifactId>outscraper-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v2.0.0</version>
4040
</dependency>
4141
```
4242
4343
### Others
4444
4545
You'll need to manually install the following JARs:
46-
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1.0.4/outscraper-java-v1.0.4.jar)
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.0.0/outscraper-java-v2.0.0.jar)
4747
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
@@ -58,21 +58,21 @@ OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
5858
5959
```java
6060
// Search for businesses in specific locations:
61-
JSONArray results = client.googleMapsSearchV2(new HashMap<String, Object>() {{
61+
JSONArray results = client.googleMapsSearch(new HashMap<String, Object>() {{
6262
put("query", "bars ny usa");
6363
put("limit", 10);
6464
}});
6565
System.out.println(results);
6666
6767
// Get data of the specific place by id
68-
JSONArray results = client.googleMapsSearchV2(new HashMap<String, Object>() {{
68+
JSONArray results = client.googleMapsSearch(new HashMap<String, Object>() {{
6969
put("query", "rChIJrc9T9fpYwokRdvjYRHT8nI4");
7070
put("language", "en");
7171
}});
7272
System.out.println(results);
7373
7474
// Get reviews of the specific place by id
75-
JSONArray results = client.googleMapsReviewsV3(new HashMap<String, Object>() {{
75+
JSONArray results = client.googleMapsReviews(new HashMap<String, Object>() {{
7676
put("query", "rChIJrc9T9fpYwokRdvjYRHT8nI4");
7777
put("reviewsLimit", 20);
7878
put("language", "en");

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'java'
22
apply plugin: 'maven-publish'
33

44
group = 'com.github.outscraper'
5-
version = '1.0.4'
5+
version = '2.0.0'
66

77
repositories {
88
mavenCentral()

examples/Emails And Contacts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation 'com.github.outscraper:outscraper-java:v1.0.4'
18+
implementation 'com.github.outscraper:outscraper-java:v2.0.0'
1919
}
2020
```
2121
@@ -36,14 +36,14 @@ Add the dependency
3636
<dependency>
3737
<groupId>com.github.outscraper</groupId>
3838
<artifactId>outscraper-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v2.0.0</version>
4040
</dependency>
4141
```
4242
4343
### Others
4444
4545
You'll need to manually install the following JARs:
46-
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1.0.4/outscraper-java-v1.0.4.jar)
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.0.0/outscraper-java-v2.0.0.jar)
4747
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)

examples/Google Maps Reviews.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation 'com.github.outscraper:outscraper-java:v1.0.4'
18+
implementation 'com.github.outscraper:outscraper-java:v2.0.0'
1919
}
2020
```
2121
@@ -36,14 +36,14 @@ Add the dependency
3636
<dependency>
3737
<groupId>com.github.outscraper</groupId>
3838
<artifactId>outscraper-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v2.0.0</version>
4040
</dependency>
4141
```
4242
4343
### Others
4444
4545
You'll need to manually install the following JARs:
46-
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1.0.4/outscraper-java-v1.0.4.jar)
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.0.0/outscraper-java-v2.0.0.jar)
4747
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
@@ -58,15 +58,15 @@ OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
5858
5959
```java
6060
// Get reviews of the specific place by id
61-
JSONArray results = client.googleMapsReviewsV3(new HashMap<String, Object>() {{
61+
JSONArray results = client.googleMapsReviews(new HashMap<String, Object>() {{
6262
put("query", "ChIJrc9T9fpYwokRdvjYRHT8nI4");
6363
put("reviewsLimit", 20);
6464
put("language", "en");
6565
}});
6666
System.out.println(results);
6767
6868
// Get reviews for places found by search query
69-
JSONArray results = client.googleMapsReviewsV3(new HashMap<String, Object>() {{
69+
JSONArray results = client.googleMapsReviews(new HashMap<String, Object>() {{
7070
put("query", "Memphis Seoul brooklyn usa");
7171
put("reviewsLimit", 20);
7272
put("limit", 20);
@@ -76,7 +76,7 @@ System.out.println(results);
7676
7777
// Get only new reviews during last 24 hours
7878
Integer yesterdayTimestamp = 1657980986;
79-
JSONArray results = client.googleMapsReviewsV3(new HashMap<String, Object>() {{
79+
JSONArray results = client.googleMapsReviews(new HashMap<String, Object>() {{
8080
put("query", "ChIJrc9T9fpYwokRdvjYRHT8nI4");
8181
put("sort", "newest");
8282
put("cutoff", yesterdayTimestamp);

examples/Google Maps.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation 'com.github.outscraper:outscraper-java:v1.0.4'
18+
implementation 'com.github.outscraper:outscraper-java:v2.0.0'
1919
}
2020
```
2121
@@ -36,14 +36,14 @@ Add the dependency
3636
<dependency>
3737
<groupId>com.github.outscraper</groupId>
3838
<artifactId>outscraper-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v2.0.0</version>
4040
</dependency>
4141
```
4242
4343
### Others
4444
4545
You'll need to manually install the following JARs:
46-
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1.0.4/outscraper-java-v1.0.4.jar)
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.0.0/outscraper-java-v2.0.0.jar)
4747
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
@@ -58,7 +58,7 @@ OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
5858
5959
```java
6060
// Search for businesses in specific locations:
61-
JSONArray results = client.googleMapsSearchV2(new HashMap<String, Object>() {{
61+
JSONArray results = client.googleMapsSearch(new HashMap<String, Object>() {{
6262
put("query", "restaurants brooklyn usa");
6363
put("limit", 20);
6464
put("language", "en");
@@ -67,7 +67,7 @@ JSONArray results = client.googleMapsSearchV2(new HashMap<String, Object>() {{
6767
System.out.println(results);
6868
6969
// Get data of the specific place by id
70-
JSONArray results = client.googleMapsSearchV2(new HashMap<String, Object>() {{
70+
JSONArray results = client.googleMapsSearch(new HashMap<String, Object>() {{
7171
put("query", "ChIJrc9T9fpYwokRdvjYRHT8nI4");
7272
put("language", "en");
7373
}});

examples/Google SERP.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation 'com.github.outscraper:outscraper-java:v1.0.4'
18+
implementation 'com.github.outscraper:outscraper-java:v2.0.0'
1919
}
2020
```
2121
@@ -36,14 +36,14 @@ Add the dependency
3636
<dependency>
3737
<groupId>com.github.outscraper</groupId>
3838
<artifactId>outscraper-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v2.0.0</version>
4040
</dependency>
4141
```
4242
4343
### Others
4444
4545
You'll need to manually install the following JARs:
46-
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1.0.4/outscraper-java-v1.0.4.jar)
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.0.0/outscraper-java-v2.0.0.jar)
4747
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
@@ -58,7 +58,7 @@ OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
5858
5959
```java
6060
// Search for SERP results:
61-
JSONArray results = client.googleSearchV3(new HashMap<String, Object>() {{
61+
JSONArray results = client.googleSearch(new HashMap<String, Object>() {{
6262
put("query", "buy iphone 13 TX");
6363
put("language", "en");
6464
put("region", "us");

examples/Phones Validator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation 'com.github.outscraper:outscraper-java:v1.0.4'
18+
implementation 'com.github.outscraper:outscraper-java:v2.0.0'
1919
}
2020
```
2121
@@ -36,14 +36,14 @@ Add the dependency
3636
<dependency>
3737
<groupId>com.github.outscraper</groupId>
3838
<artifactId>outscraper-java</artifactId>
39-
<version>v1.0.4</version>
39+
<version>v2.0.0</version>
4040
</dependency>
4141
```
4242
4343
### Others
4444
4545
You'll need to manually install the following JARs:
46-
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1.0.4/outscraper-java-v1.0.4.jar)
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.0.0/outscraper-java-v2.0.0.jar)
4747
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)

src/main/java/OutscraperClient.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,20 @@ public JSONObject getRequestArchive(String requestId) {
7676
public JSONArray googleSearch(HashMap<String, Object> parameters) {
7777
parameters.put("async", false);
7878

79-
JSONObject response = getAPIRequest("/google-search-v2", parameters);
80-
81-
return getData(response);
82-
}
83-
84-
public JSONArray googleSearchV3(HashMap<String, Object> parameters) {
85-
parameters.put("async", false);
86-
8779
JSONObject response = getAPIRequest("/google-search-v3", parameters);
8880

8981
return getData(response);
9082
}
9183

92-
public JSONArray googleMapsSearchV2(HashMap<String, Object> parameters) {
84+
public JSONArray googleMapsSearch(HashMap<String, Object> parameters) {
9385
parameters.put("async", false);
9486

9587
JSONObject response = getAPIRequest("/maps/search-v2", parameters);
9688

9789
return getData(response);
9890
}
9991

100-
public JSONArray googleMapsReviewsV3(HashMap<String, Object> parameters) {
92+
public JSONArray googleMapsReviews(HashMap<String, Object> parameters) {
10193
parameters.put("async", false);
10294

10395
JSONObject response = getAPIRequest("/maps/reviews-v3", parameters);

0 commit comments

Comments
 (0)