Skip to content

arachnio/arachnio4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arachnio4j tests Maven Central

Arachnio client library for Java 11+

Getting Started

Step 1. Subscribe 👍

First, you'll need to subscribe to an Arachnio product. The Free Forever Plan is just fine for this introduction. Before we head to the next step, you'll need your Base Product URL and one of your Bloblr API Keys.

The Subscription Authentication Screen

Above is a screenshot of the Subscription Authentication screen, which contains these facts. The Base Product URL is circled in red, and the Blobr API keys in green. Both are redacted for privacy. 🤫

Step 2. Pick a Webpage 🔗

In this introduction, we will extract structured data from a webpage, so the next step is to pick a webpage to extract. In the spirit of web crawling, we have picked an article about spiders for this example. 🕷

Hey there, fella!

Step 3. Call Link Extract Endpoint 📢

Now that we have our base URL, API key, and parameters, we can call the link extract endpoint!

ArachnioClient client=new DefaultArachnioClient(ARACHNIO_BASE_URL, BLOBR_API_KEY);

ExtractedLink response = client.extractLink(
    "https://www.nytimes.com/2022/08/25/science/spiders-misinformation-rumors.html");

if(response.getEntity() instanceof ArticleWebpageEntityMetadata article) {
    System.out.println(article.getTitle());
    // Spiders Are Caught in a Global Web of Misinformation
}