Skip to content

Commit 77515a5

Browse files
Merge pull request #4 from outscraper/os-added-more-examples-yellowpages
added new examples, yellowpages, refactoring
2 parents bad1de6 + ef9ed24 commit 77515a5

12 files changed

+725
-61
lines changed

examples/Company Insights.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Company Insights With Java
2+
3+
Finds company details such as revenue, size, founding year, public status, etc. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Other-Services/paths/~1company-insights/get).
4+
5+
## Installation
6+
7+
Java 11 or later
8+
9+
### Gradle
10+
11+
Edit your build.gradle file
12+
``` sh
13+
repositories {
14+
maven { url "https://jitpack.io" }
15+
}
16+
17+
dependencies {
18+
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
19+
}
20+
```
21+
22+
### Maven
23+
24+
Add the JitPack repository to your build file
25+
``` sh
26+
<repositories>
27+
<repository>
28+
<id>jitpack.io</id>
29+
<url>https://jitpack.io</url>
30+
</repository>
31+
</repositories>
32+
```
33+
34+
Add the dependency
35+
``` sh
36+
<dependency>
37+
<groupId>com.github.outscraper</groupId>
38+
<artifactId>outscraper-java</artifactId>
39+
<version>v2.1.0</version>
40+
</dependency>
41+
```
42+
43+
### Others
44+
45+
You'll need to manually install the following JARs:
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
47+
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
48+
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
49+
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
50+
51+
## Initialization
52+
```java
53+
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
54+
```
55+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
56+
57+
## Usage
58+
59+
```java
60+
# Get information about the companies:
61+
JSONArray results = client.companyInsights(new HashMap<String, Object>() {{
62+
put("query", "outscraper.com");
63+
}});
64+
System.out.println(results);
65+
```

examples/Company Website Finder.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Company Website Finder With Java
2+
3+
Finds company websites based on business names.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Domain-Related/paths/~1company-website-finder/get).
4+
5+
## Installation
6+
7+
Java 11 or later
8+
9+
### Gradle
10+
11+
Edit your build.gradle file
12+
``` sh
13+
repositories {
14+
maven { url "https://jitpack.io" }
15+
}
16+
17+
dependencies {
18+
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
19+
}
20+
```
21+
22+
### Maven
23+
24+
Add the JitPack repository to your build file
25+
``` sh
26+
<repositories>
27+
<repository>
28+
<id>jitpack.io</id>
29+
<url>https://jitpack.io</url>
30+
</repository>
31+
</repositories>
32+
```
33+
34+
Add the dependency
35+
``` sh
36+
<dependency>
37+
<groupId>com.github.outscraper</groupId>
38+
<artifactId>outscraper-java</artifactId>
39+
<version>v2.1.0</version>
40+
</dependency>
41+
```
42+
43+
### Others
44+
45+
You'll need to manually install the following JARs:
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
47+
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
48+
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
49+
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
50+
51+
## Initialization
52+
```java
53+
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
54+
```
55+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
56+
57+
## Usage
58+
59+
```java
60+
# Get information about the companies:
61+
JSONArray results = client.companyWebsiteFinder(new HashMap<String, Object>() {{
62+
put("query", "Apple Inc");
63+
}});
64+
System.out.println(results);
65+
```

examples/Email Addresses Finder.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Email Addresses Finder With Java
2+
3+
Allows to validate email addresses. Checks if emails are deliverable. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Email-Related/paths/~1email-validator/get).
4+
5+
## Installation
6+
7+
Java 11 or later
8+
9+
### Gradle
10+
11+
Edit your build.gradle file
12+
``` sh
13+
repositories {
14+
maven { url "https://jitpack.io" }
15+
}
16+
17+
dependencies {
18+
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
19+
}
20+
```
21+
22+
### Maven
23+
24+
Add the JitPack repository to your build file
25+
``` sh
26+
<repositories>
27+
<repository>
28+
<id>jitpack.io</id>
29+
<url>https://jitpack.io</url>
30+
</repository>
31+
</repositories>
32+
```
33+
34+
Add the dependency
35+
``` sh
36+
<dependency>
37+
<groupId>com.github.outscraper</groupId>
38+
<artifactId>outscraper-java</artifactId>
39+
<version>v2.1.0</version>
40+
</dependency>
41+
```
42+
43+
### Others
44+
45+
You'll need to manually install the following JARs:
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
47+
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
48+
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
49+
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
50+
51+
## Initialization
52+
```java
53+
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
54+
```
55+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
56+
57+
## Usage
58+
59+
```java
60+
# Validate email addresses:
61+
JSONArray results = client.validateEmails(new HashMap<String, Object>() {{
62+
put("query", "support@outscraper.com");
63+
}});
64+
System.out.println(results);
65+
```
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Google Maps Photos Scraper With Java
2+
3+
Returns Google Maps photos from places when using search queries (e.g., restaurants, Manhattan, NY, USA) or from a single place when using IDs or names (e.g., NoMad Restaurant, NY, USA, 0x886916e8bc273979:0x5141fcb11460b226, ChIJu7bMNFV-54gR-lrHScvPRX4).
4+
In case no photos were found by your search criteria, your search request will consume the usage of one photo.[Outscraper API](https://app.outscraper.cloud/api-docs#tag/Google/paths/~1maps~1photos-v3/get).
5+
6+
## Installation
7+
8+
Java 11 or later
9+
10+
### Gradle
11+
12+
Edit your build.gradle file
13+
``` sh
14+
repositories {
15+
maven { url "https://jitpack.io" }
16+
}
17+
18+
dependencies {
19+
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
20+
}
21+
```
22+
23+
### Maven
24+
25+
Add the JitPack repository to your build file
26+
``` sh
27+
<repositories>
28+
<repository>
29+
<id>jitpack.io</id>
30+
<url>https://jitpack.io</url>
31+
</repository>
32+
</repositories>
33+
```
34+
35+
Add the dependency
36+
``` sh
37+
<dependency>
38+
<groupId>com.github.outscraper</groupId>
39+
<artifactId>outscraper-java</artifactId>
40+
<version>v2.1.0</version>
41+
</dependency>
42+
```
43+
44+
### Others
45+
46+
You'll need to manually install the following JARs:
47+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
48+
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
49+
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
50+
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
51+
52+
## Initialization
53+
```java
54+
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
55+
```
56+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
57+
58+
## Usage
59+
60+
```java
61+
# Get information about the places photos:
62+
JSONArray results = client.getGoogleMapsPhotos(new HashMap<String, Object>() {{
63+
put("query", "The NoMad Restaurant, NY, USA");
64+
}});
65+
System.out.println(results);
66+
```

examples/SimilarWeb Scraper.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SimilarWeb Scraper With Java
2+
3+
Returns website analytics data including traffic, rankings, audience insights, and competitive intelligence from SimilarWeb [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Domain-Related/paths/~1similarweb/get).
4+
5+
## Installation
6+
7+
Java 11 or later
8+
9+
### Gradle
10+
11+
Edit your build.gradle file
12+
``` sh
13+
repositories {
14+
maven { url "https://jitpack.io" }
15+
}
16+
2
17+
dependencies {
18+
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
19+
}
20+
```
21+
22+
### Maven
23+
24+
Add the JitPack repository to your build file
25+
``` sh
26+
<repositories>
27+
<repository>
28+
<id>jitpack.io</id>
29+
<url>https://jitpack.io</url>
30+
</repository>
31+
</repositories>
32+
```
33+
34+
Add the dependency
35+
``` sh
36+
<dependency>
37+
<groupId>com.github.outscraper</groupId>
38+
<artifactId>outscraper-java</artifactId>
39+
<version>v2.1.0</version>
40+
</dependency>
41+
```
42+
43+
### Others
44+
45+
You'll need to manually install the following JARs:
46+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
47+
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
48+
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
49+
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
50+
51+
## Initialization
52+
```java
53+
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
54+
```
55+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
56+
57+
## Usage
58+
59+
```java
60+
# Get data from Similarweb businesses:
61+
JSONArray results = client.similarweb(new HashMap<String, Object>() {{
62+
put("query", "apple.com");
63+
}});
64+
System.out.println(results);
65+
```
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Tripadvisor Reviews Scraper With Java
2+
3+
Returns reviews from Tripadvisor businesses.
4+
In case no reviews were found by your search criteria, your search request will consume the usage of one review. [Outscraper API](https://app.outscraper.cloud/api-docs#tag/Reviews-and-Comments/paths/~1tripadvisor-reviews/get).
5+
6+
## Installation
7+
8+
Java 11 or later
9+
10+
### Gradle
11+
12+
Edit your build.gradle file
13+
``` sh
14+
repositories {
15+
maven { url "https://jitpack.io" }
16+
}
17+
18+
dependencies {
19+
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
20+
}
21+
```
22+
23+
### Maven
24+
25+
Add the JitPack repository to your build file
26+
``` sh
27+
<repositories>
28+
<repository>
29+
<id>jitpack.io</id>
30+
<url>https://jitpack.io</url>
31+
</repository>
32+
</repositories>
33+
```
34+
35+
Add the dependency
36+
``` sh
37+
<dependency>
38+
<groupId>com.github.outscraper</groupId>
39+
<artifactId>outscraper-java</artifactId>
40+
<version>v2.1.0</version>
41+
</dependency>
42+
```
43+
44+
### Others
45+
46+
You'll need to manually install the following JARs:
47+
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
48+
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
49+
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
50+
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
51+
52+
## Initialization
53+
```java
54+
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
55+
```
56+
[Link to the profile page to create the API key](https://app.outscraper.com/profile)
57+
58+
## Usage
59+
60+
```java
61+
# Get information about business
62+
JSONArray results = client.tripadvisorReviews(new HashMap<String, Object>() {{
63+
put("query", "https://www.tripadvisor.com Restaurant_Review-g187147-d12947099-Reviews-Mayfair_Garden-Paris_Ile_de_France.html");
64+
}});
65+
System.out.println(results);
66+
```

0 commit comments

Comments
 (0)