The latest development version of the package will always be on GitHub. To install the package from GitHub and to load the installed package:
To install the package from CRAN, type in:
Next, load the package:
To get category of the content from Shallalist (service discontinued - using archived data), first download the archived data using:
And then, get the category using:
## domain_name shalla_category
## 1 google.com searchengines
To get category of the content from DMOZ, first download the archived parsed CSV file using:
And then, get the category using:
Probability that Domain Hosts Adult Content Based on features of Domain Name and Suffix alone:
## domain_name category
## 1 google.com 0.3133728
Start by getting the API key from VirusTotal.
The package uses the VirusTotal API v3 for comprehensive domain analysis:
Get domain categorization using OpenAI’s GPT models. You’ll need an OpenAI API key:
# Set your API key
Sys.setenv("OPENAI_API_KEY", "your-api-key-here")
# Classify domains
openai_cat("google.com")## domain_name openai_category
## 1 google.com technology
You can also specify custom categories: