websiteclassificationapi 2.14__tar.gz → 2.15.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/PKG-INFO +14 -6
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/README.md +12 -5
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/setup.py +2 -1
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/test/__init__.py +61 -61
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/websiteclassificationapi/__init__.py +61 -61
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/websiteclassificationapi.egg-info/PKG-INFO +14 -6
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/setup.cfg +0 -0
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/websiteclassificationapi.egg-info/SOURCES.txt +0 -0
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/websiteclassificationapi.egg-info/dependency_links.txt +0 -0
- {websiteclassificationapi-2.14 → websiteclassificationapi-2.15.1}/websiteclassificationapi.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: websiteclassificationapi
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.15.1
|
|
4
4
|
Summary: Website classification API
|
|
5
5
|
Home-page: https://github.com/websitecategorization/websiteclassificationnapi
|
|
6
6
|
Author-email: info@websitecategorizationapi.com
|
|
7
7
|
License: UNKNOWN
|
|
8
8
|
Project-URL: Homepage, https://www.websitecategorizationapi.com
|
|
9
9
|
Project-URL: AI Tools Blocklist, https://www.aitoolsblocklist.com
|
|
10
|
+
Project-URL: Resume Reader API, http://resumereaderapi.com
|
|
10
11
|
Description: # Website Classification API
|
|
11
12
|
|
|
12
13
|
This is the Python3 client library for [URL Classification](https://www.websitecategorizationapi.com) service.
|
|
@@ -110,11 +111,13 @@ Description: # Website Classification API
|
|
|
110
111
|
|
|
111
112
|
## Our other services
|
|
112
113
|
|
|
113
|
-
Companies that manage internet access often start with a [web filtering database](https://webfilteringdatabase.com) to review how domains are categorized. This supports better decisions around policy cr
|
|
114
|
-
eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://webfilteringservice.com) to apply those controls in production.
|
|
114
|
+
Companies that manage internet access often start with a [web filtering database](https://www.webfilteringdatabase.com) to review how domains are categorized. This supports better decisions around policy cr
|
|
115
|
+
eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://www.webfilteringservice.com) to apply those controls in production.
|
|
115
116
|
|
|
116
117
|
|
|
117
|
-
We also provide
|
|
118
|
+
We also provide an [Anonymization API](https://www.anonymizationapi.com) for privacy-preserving media and data workflows.
|
|
119
|
+
|
|
120
|
+
Schools and libraries subject to the Children's Internet Protection Act need more than generic web categories — they need a purpose-built [CIPA web filtering](https://www.cipawebfiltering.com) database with 120 million domains organized into 57+ content categories aligned to federal compliance requirements. Pairing categorization with threat intelligence strengthens any filtering deployment, and our [phishing detection API](https://www.phishingdetectionapi.com) delivers real-time lookups against 390,000+ DNS-verified active phishing domains so that malicious URLs are blocked before they reach end users. Together, these services give IT teams the classification depth and security coverage needed to protect students, staff, and network infrastructure.
|
|
118
121
|
|
|
119
122
|
## AI explainability
|
|
120
123
|
|
|
@@ -167,9 +170,9 @@ Description: # Website Classification API
|
|
|
167
170
|
|
|
168
171
|
|
|
169
172
|
|
|
170
|
-
Our digital solutions are trusted by organizations seeking reliable, secure, and innovative tools.
|
|
173
|
+
Our digital solutions are trusted by organizations seeking reliable, secure, and innovative tools. Protect privacy in every scenario using our [image anonymization](https://www.anonymizationapi.com) platform, engineered to meet global standards and inspired by research from [MIT](https://web.mit.edu), while staying informed with insights from [Harvard](https://www.harvard.edu) and approaches found at [Stanford](https://www.stanford.edu).
|
|
171
174
|
|
|
172
|
-
Business growth is supported through our [corporate enrichment data](https://www.companydataapi.com), delivering actionable intelligence much like the work at [Cambridge](https://www.cam.ac.uk). For cybersecurity and research teams, our [domain dataset](https://www.urlcategorizationdatabase.com) offers extensive categorization, paralleling the data-centric methods at [Berkeley](https://www.berkeley.edu).
|
|
175
|
+
Business growth is supported through our [corporate enrichment data](https://www.companydataapi.com), delivering actionable intelligence much like the work at [Cambridge](https://www.cam.ac.uk). For cybersecurity and research teams, our [domain dataset](https://www.urlcategorizationdatabase.com) offers extensive categorization, paralleling the data-centric methods at [Berkeley](https://www.berkeley.edu).
|
|
173
176
|
|
|
174
177
|
By aligning our solutions with the excellence demonstrated at [Yale](https://www.yale.edu) and [Cornell](https://www.cornell.edu), we ensure that your organization stays at the cutting edge—combining technology, research, and practical results for every challenge.
|
|
175
178
|
|
|
@@ -306,6 +309,10 @@ Description: # Website Classification API
|
|
|
306
309
|
|
|
307
310
|
For teams building acceptable-use or data-loss-prevention policies around generative AI, the [AI Tools Blocklist](https://www.aitoolsblocklist.com) complements this classifier with a purpose-built feed of AI-tool domains grouped into functional categories (chatbots, code assistants, media generators, voice cloning, and more). It answers a question generic categorization cannot: not just "is this site AI-related," but "which kind of AI tool is it," which is what granular blocking policies require.
|
|
308
311
|
|
|
312
|
+
Website classification at massive scale also applies to discovering acquisition candidates across the full web. Our [web-scale deal origination platform](https://www.acquisitionuniverse.com) screens over 100 million classified domains against buyer acquisition theses, extracting 15 operational signals per company from their public web presence. Private equity firms, search funds, and corporate development teams use the pipeline to surface non-obvious targets whose websites reveal strong fit signals — leadership depth, recurring revenue indicators, compliance readiness — that conventional company databases never capture.
|
|
313
|
+
|
|
314
|
+
The same classification engine powers contextual audience segments for programmatic advertising without cookies. Our [cookieless advertising data platform](https://www.cookielessaudiences.com) delivers domain datasets pre-categorized under the IAB content taxonomy, enabling DSPs and publishers to target audiences based on page context rather than user-level tracking. With Chrome, Safari, and Firefox deprecating third-party cookies, domain-level contextual classification is becoming the primary signal for brand-safe, regulation-compliant ad placement at scale.
|
|
315
|
+
|
|
309
316
|
## Useful resources used in development of website categorization
|
|
310
317
|
|
|
311
318
|
- [Tensorflow](https://www.tensorflow.org/)
|
|
@@ -320,6 +327,7 @@ Description: # Website Classification API
|
|
|
320
327
|
|
|
321
328
|
- [Top shopify stores](https://www.leadsquantum.com)
|
|
322
329
|
- [AI Tools Blocklist](https://www.aitoolsblocklist.com)
|
|
330
|
+
- [CV parser](http://resumereaderapi.com) — AI resume parsing API that turns PDF/DOCX resumes into structured JSON
|
|
323
331
|
|
|
324
332
|
Keywords: website categorization,classification,categorization
|
|
325
333
|
Platform: UNKNOWN
|
|
@@ -101,11 +101,13 @@ Having verticals set up may also mean better filtering and lead to higher conver
|
|
|
101
101
|
|
|
102
102
|
## Our other services
|
|
103
103
|
|
|
104
|
-
Companies that manage internet access often start with a [web filtering database](https://webfilteringdatabase.com) to review how domains are categorized. This supports better decisions around policy cr
|
|
105
|
-
eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://webfilteringservice.com) to apply those controls in production.
|
|
104
|
+
Companies that manage internet access often start with a [web filtering database](https://www.webfilteringdatabase.com) to review how domains are categorized. This supports better decisions around policy cr
|
|
105
|
+
eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://www.webfilteringservice.com) to apply those controls in production.
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
We also provide
|
|
108
|
+
We also provide an [Anonymization API](https://www.anonymizationapi.com) for privacy-preserving media and data workflows.
|
|
109
|
+
|
|
110
|
+
Schools and libraries subject to the Children's Internet Protection Act need more than generic web categories — they need a purpose-built [CIPA web filtering](https://www.cipawebfiltering.com) database with 120 million domains organized into 57+ content categories aligned to federal compliance requirements. Pairing categorization with threat intelligence strengthens any filtering deployment, and our [phishing detection API](https://www.phishingdetectionapi.com) delivers real-time lookups against 390,000+ DNS-verified active phishing domains so that malicious URLs are blocked before they reach end users. Together, these services give IT teams the classification depth and security coverage needed to protect students, staff, and network infrastructure.
|
|
109
111
|
|
|
110
112
|
## AI explainability
|
|
111
113
|
|
|
@@ -158,9 +160,9 @@ Here are e.g. recommendations for company using Mouse Flow: <table class="table"
|
|
|
158
160
|
|
|
159
161
|
|
|
160
162
|
|
|
161
|
-
Our digital solutions are trusted by organizations seeking reliable, secure, and innovative tools.
|
|
163
|
+
Our digital solutions are trusted by organizations seeking reliable, secure, and innovative tools. Protect privacy in every scenario using our [image anonymization](https://www.anonymizationapi.com) platform, engineered to meet global standards and inspired by research from [MIT](https://web.mit.edu), while staying informed with insights from [Harvard](https://www.harvard.edu) and approaches found at [Stanford](https://www.stanford.edu).
|
|
162
164
|
|
|
163
|
-
Business growth is supported through our [corporate enrichment data](https://www.companydataapi.com), delivering actionable intelligence much like the work at [Cambridge](https://www.cam.ac.uk). For cybersecurity and research teams, our [domain dataset](https://www.urlcategorizationdatabase.com) offers extensive categorization, paralleling the data-centric methods at [Berkeley](https://www.berkeley.edu).
|
|
165
|
+
Business growth is supported through our [corporate enrichment data](https://www.companydataapi.com), delivering actionable intelligence much like the work at [Cambridge](https://www.cam.ac.uk). For cybersecurity and research teams, our [domain dataset](https://www.urlcategorizationdatabase.com) offers extensive categorization, paralleling the data-centric methods at [Berkeley](https://www.berkeley.edu).
|
|
164
166
|
|
|
165
167
|
By aligning our solutions with the excellence demonstrated at [Yale](https://www.yale.edu) and [Cornell](https://www.cornell.edu), we ensure that your organization stays at the cutting edge—combining technology, research, and practical results for every challenge.
|
|
166
168
|
|
|
@@ -297,6 +299,10 @@ Example classification for website www.github.com:
|
|
|
297
299
|
|
|
298
300
|
For teams building acceptable-use or data-loss-prevention policies around generative AI, the [AI Tools Blocklist](https://www.aitoolsblocklist.com) complements this classifier with a purpose-built feed of AI-tool domains grouped into functional categories (chatbots, code assistants, media generators, voice cloning, and more). It answers a question generic categorization cannot: not just "is this site AI-related," but "which kind of AI tool is it," which is what granular blocking policies require.
|
|
299
301
|
|
|
302
|
+
Website classification at massive scale also applies to discovering acquisition candidates across the full web. Our [web-scale deal origination platform](https://www.acquisitionuniverse.com) screens over 100 million classified domains against buyer acquisition theses, extracting 15 operational signals per company from their public web presence. Private equity firms, search funds, and corporate development teams use the pipeline to surface non-obvious targets whose websites reveal strong fit signals — leadership depth, recurring revenue indicators, compliance readiness — that conventional company databases never capture.
|
|
303
|
+
|
|
304
|
+
The same classification engine powers contextual audience segments for programmatic advertising without cookies. Our [cookieless advertising data platform](https://www.cookielessaudiences.com) delivers domain datasets pre-categorized under the IAB content taxonomy, enabling DSPs and publishers to target audiences based on page context rather than user-level tracking. With Chrome, Safari, and Firefox deprecating third-party cookies, domain-level contextual classification is becoming the primary signal for brand-safe, regulation-compliant ad placement at scale.
|
|
305
|
+
|
|
300
306
|
## Useful resources used in development of website categorization
|
|
301
307
|
|
|
302
308
|
- [Tensorflow](https://www.tensorflow.org/)
|
|
@@ -311,3 +317,4 @@ For teams building acceptable-use or data-loss-prevention policies around genera
|
|
|
311
317
|
|
|
312
318
|
- [Top shopify stores](https://www.leadsquantum.com)
|
|
313
319
|
- [AI Tools Blocklist](https://www.aitoolsblocklist.com)
|
|
320
|
+
- [CV parser](http://resumereaderapi.com) — AI resume parsing API that turns PDF/DOCX resumes into structured JSON
|
|
@@ -11,7 +11,7 @@ setup(
|
|
|
11
11
|
name="websiteclassificationapi",
|
|
12
12
|
|
|
13
13
|
# The version of your project.
|
|
14
|
-
version="2.
|
|
14
|
+
version="2.15.1",
|
|
15
15
|
|
|
16
16
|
packages=find_packages(exclude="tests"),
|
|
17
17
|
|
|
@@ -26,6 +26,7 @@ setup(
|
|
|
26
26
|
project_urls={
|
|
27
27
|
"Homepage": "https://www.websitecategorizationapi.com",
|
|
28
28
|
"AI Tools Blocklist": "https://www.aitoolsblocklist.com",
|
|
29
|
+
"Resume Reader API": "http://resumereaderapi.com",
|
|
29
30
|
},
|
|
30
31
|
|
|
31
32
|
author_name="Samo",
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Python wrapper for website categorization API (service of www.websitecategorizationapi.com)
|
|
3
|
-
|
|
4
|
-
Explanation of available classifiers:
|
|
5
|
-
|
|
6
|
-
Classifier_type should be set to either iab1 (Tier 1 categorization) or iab2 (Tier 2 categorization) for general websites or ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites.
|
|
7
|
-
|
|
8
|
-
IAB Tier 1 categorization returns probabilities of text being classified as one of 29 possible categories.
|
|
9
|
-
|
|
10
|
-
IAB Tier 2 categorization returns probabilities of text being classified as one of 447 possible categories.
|
|
11
|
-
|
|
12
|
-
Ecommerce Tier 1 categorization returns probabilities of text being classified as one of 21 possible categories.
|
|
13
|
-
|
|
14
|
-
Ecommerce Tier 2 website categorization returns probabilities of text being classified as one of 182 possible categories.
|
|
15
|
-
|
|
16
|
-
Ecommerce Tier 3 website categorization returns probabilities of text being classified as one of 1113 possible categories.
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
import requests
|
|
20
|
-
import json
|
|
21
|
-
|
|
22
|
-
class websiteclassificationapi:
|
|
23
|
-
def __init__(self):
|
|
24
|
-
pass
|
|
25
|
-
|
|
26
|
-
@staticmethod
|
|
27
|
-
def get_categorization(url,api_key,category_type):
|
|
28
|
-
"""
|
|
29
|
-
url = URL of website
|
|
30
|
-
api_key = api key
|
|
31
|
-
category_type = iab1 or iab2 for general websites, ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites
|
|
32
|
-
"""
|
|
33
|
-
if category_type=='iab1':
|
|
34
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category1_url.php"
|
|
35
|
-
elif category_type=='iab2':
|
|
36
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category2_url.php"
|
|
37
|
-
elif category_type=='ecommerce1':
|
|
38
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/
|
|
39
|
-
elif category_type=='ecommerce2':
|
|
40
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/
|
|
41
|
-
elif category_type=='ecommerce3':
|
|
42
|
-
url_api = "https://www.websitecategorizationapi.com/api/
|
|
43
|
-
|
|
44
|
-
if (('http://' not in url) or ('https://' not in url)):
|
|
45
|
-
url = 'http://'+url
|
|
46
|
-
try:
|
|
47
|
-
url = requests.utils.quote(url)
|
|
48
|
-
print("URL:", url)
|
|
49
|
-
payload='query='+url+'&api_key='+api_key+'&data_type=url'
|
|
50
|
-
headers = {
|
|
51
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
52
|
-
}
|
|
53
|
-
response = requests.request("POST", url_api, headers=headers, data=payload)
|
|
54
|
-
data = json.loads(response.text)
|
|
55
|
-
try:
|
|
56
|
-
category = data['classification'][0]['category']
|
|
57
|
-
except:
|
|
58
|
-
category = 'url could not be loaded'
|
|
59
|
-
return category
|
|
60
|
-
except Exception as e:
|
|
61
|
-
print(e)
|
|
1
|
+
"""
|
|
2
|
+
Python wrapper for website categorization API (service of www.websitecategorizationapi.com)
|
|
3
|
+
|
|
4
|
+
Explanation of available classifiers:
|
|
5
|
+
|
|
6
|
+
Classifier_type should be set to either iab1 (Tier 1 categorization) or iab2 (Tier 2 categorization) for general websites or ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites.
|
|
7
|
+
|
|
8
|
+
IAB Tier 1 categorization returns probabilities of text being classified as one of 29 possible categories.
|
|
9
|
+
|
|
10
|
+
IAB Tier 2 categorization returns probabilities of text being classified as one of 447 possible categories.
|
|
11
|
+
|
|
12
|
+
Ecommerce Tier 1 categorization returns probabilities of text being classified as one of 21 possible categories.
|
|
13
|
+
|
|
14
|
+
Ecommerce Tier 2 website categorization returns probabilities of text being classified as one of 182 possible categories.
|
|
15
|
+
|
|
16
|
+
Ecommerce Tier 3 website categorization returns probabilities of text being classified as one of 1113 possible categories.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import requests
|
|
20
|
+
import json
|
|
21
|
+
|
|
22
|
+
class websiteclassificationapi:
|
|
23
|
+
def __init__(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
def get_categorization(url,api_key,category_type):
|
|
28
|
+
"""
|
|
29
|
+
url = URL of website
|
|
30
|
+
api_key = api key
|
|
31
|
+
category_type = iab1 or iab2 for general websites, ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites
|
|
32
|
+
"""
|
|
33
|
+
if category_type=='iab1':
|
|
34
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category1_url.php"
|
|
35
|
+
elif category_type=='iab2':
|
|
36
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category2_url.php"
|
|
37
|
+
elif category_type=='ecommerce1':
|
|
38
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/gpt_category1.php"
|
|
39
|
+
elif category_type=='ecommerce2':
|
|
40
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/gpt_category2.php"
|
|
41
|
+
elif category_type=='ecommerce3':
|
|
42
|
+
url_api = "https://www.websitecategorizationapi.com/api/gpt_new1/gpt_category3.php"
|
|
43
|
+
|
|
44
|
+
if (('http://' not in url) or ('https://' not in url)):
|
|
45
|
+
url = 'http://'+url
|
|
46
|
+
try:
|
|
47
|
+
url = requests.utils.quote(url)
|
|
48
|
+
print("URL:", url)
|
|
49
|
+
payload='query='+url+'&api_key='+api_key+'&data_type=url'
|
|
50
|
+
headers = {
|
|
51
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
52
|
+
}
|
|
53
|
+
response = requests.request("POST", url_api, headers=headers, data=payload)
|
|
54
|
+
data = json.loads(response.text)
|
|
55
|
+
try:
|
|
56
|
+
category = data['classification'][0]['category']
|
|
57
|
+
except:
|
|
58
|
+
category = 'url could not be loaded'
|
|
59
|
+
return category
|
|
60
|
+
except Exception as e:
|
|
61
|
+
print(e)
|
|
62
62
|
pass
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Python wrapper for website categorization API (service of www.websitecategorizationapi.com)
|
|
3
|
-
|
|
4
|
-
Explanation of available classifiers:
|
|
5
|
-
|
|
6
|
-
Classifier_type should be set to either iab1 (Tier 1 categorization) or iab2 (Tier 2 categorization) for general websites or ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites.
|
|
7
|
-
|
|
8
|
-
IAB Tier 1 categorization returns probabilities of text being classified as one of 29 possible categories.
|
|
9
|
-
|
|
10
|
-
IAB Tier 2 categorization returns probabilities of text being classified as one of 447 possible categories.
|
|
11
|
-
|
|
12
|
-
Ecommerce Tier 1 categorization returns probabilities of text being classified as one of 21 possible categories.
|
|
13
|
-
|
|
14
|
-
Ecommerce Tier 2 website categorization returns probabilities of text being classified as one of 182 possible categories.
|
|
15
|
-
|
|
16
|
-
Ecommerce Tier 3 website categorization returns probabilities of text being classified as one of 1113 possible categories.
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
import requests
|
|
20
|
-
import json
|
|
21
|
-
|
|
22
|
-
class websiteclassificationapi:
|
|
23
|
-
def __init__(self):
|
|
24
|
-
pass
|
|
25
|
-
|
|
26
|
-
@staticmethod
|
|
27
|
-
def get_categorization(url,api_key,category_type):
|
|
28
|
-
"""
|
|
29
|
-
url = URL of website
|
|
30
|
-
api_key = api key
|
|
31
|
-
category_type = iab1 or iab2 for general websites, ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites
|
|
32
|
-
"""
|
|
33
|
-
if category_type=='iab1':
|
|
34
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category1_url.php"
|
|
35
|
-
elif category_type=='iab2':
|
|
36
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category2_url.php"
|
|
37
|
-
elif category_type=='ecommerce1':
|
|
38
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/
|
|
39
|
-
elif category_type=='ecommerce2':
|
|
40
|
-
url_api = "https://www.websitecategorizationapi.com/api/iab/
|
|
41
|
-
elif category_type=='ecommerce3':
|
|
42
|
-
url_api = "https://www.websitecategorizationapi.com/api/
|
|
43
|
-
|
|
44
|
-
if (('http://' not in url) or ('https://' not in url)):
|
|
45
|
-
url = 'http://'+url
|
|
46
|
-
try:
|
|
47
|
-
url = requests.utils.quote(url)
|
|
48
|
-
print("URL:", url)
|
|
49
|
-
payload='query='+url+'&api_key='+api_key+'&data_type=url'
|
|
50
|
-
headers = {
|
|
51
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
52
|
-
}
|
|
53
|
-
response = requests.request("POST", url_api, headers=headers, data=payload)
|
|
54
|
-
data = json.loads(response.text)
|
|
55
|
-
try:
|
|
56
|
-
category = data['classification'][0]['category']
|
|
57
|
-
except:
|
|
58
|
-
category = 'url could not be loaded'
|
|
59
|
-
return category
|
|
60
|
-
except Exception as e:
|
|
61
|
-
print(e)
|
|
1
|
+
"""
|
|
2
|
+
Python wrapper for website categorization API (service of www.websitecategorizationapi.com)
|
|
3
|
+
|
|
4
|
+
Explanation of available classifiers:
|
|
5
|
+
|
|
6
|
+
Classifier_type should be set to either iab1 (Tier 1 categorization) or iab2 (Tier 2 categorization) for general websites or ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites.
|
|
7
|
+
|
|
8
|
+
IAB Tier 1 categorization returns probabilities of text being classified as one of 29 possible categories.
|
|
9
|
+
|
|
10
|
+
IAB Tier 2 categorization returns probabilities of text being classified as one of 447 possible categories.
|
|
11
|
+
|
|
12
|
+
Ecommerce Tier 1 categorization returns probabilities of text being classified as one of 21 possible categories.
|
|
13
|
+
|
|
14
|
+
Ecommerce Tier 2 website categorization returns probabilities of text being classified as one of 182 possible categories.
|
|
15
|
+
|
|
16
|
+
Ecommerce Tier 3 website categorization returns probabilities of text being classified as one of 1113 possible categories.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import requests
|
|
20
|
+
import json
|
|
21
|
+
|
|
22
|
+
class websiteclassificationapi:
|
|
23
|
+
def __init__(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
def get_categorization(url,api_key,category_type):
|
|
28
|
+
"""
|
|
29
|
+
url = URL of website
|
|
30
|
+
api_key = api key
|
|
31
|
+
category_type = iab1 or iab2 for general websites, ecommerce1, ecommerce2 and ecommerce3 for E-commerce or product websites
|
|
32
|
+
"""
|
|
33
|
+
if category_type=='iab1':
|
|
34
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category1_url.php"
|
|
35
|
+
elif category_type=='iab2':
|
|
36
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/iab_category2_url.php"
|
|
37
|
+
elif category_type=='ecommerce1':
|
|
38
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/gpt_category1.php"
|
|
39
|
+
elif category_type=='ecommerce2':
|
|
40
|
+
url_api = "https://www.websitecategorizationapi.com/api/iab/gpt_category2.php"
|
|
41
|
+
elif category_type=='ecommerce3':
|
|
42
|
+
url_api = "https://www.websitecategorizationapi.com/api/gpt_new1/gpt_category3.php"
|
|
43
|
+
|
|
44
|
+
if (('http://' not in url) or ('https://' not in url)):
|
|
45
|
+
url = 'http://'+url
|
|
46
|
+
try:
|
|
47
|
+
url = requests.utils.quote(url)
|
|
48
|
+
print("URL:", url)
|
|
49
|
+
payload='query='+url+'&api_key='+api_key+'&data_type=url'
|
|
50
|
+
headers = {
|
|
51
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
52
|
+
}
|
|
53
|
+
response = requests.request("POST", url_api, headers=headers, data=payload)
|
|
54
|
+
data = json.loads(response.text)
|
|
55
|
+
try:
|
|
56
|
+
category = data['classification'][0]['category']
|
|
57
|
+
except:
|
|
58
|
+
category = 'url could not be loaded'
|
|
59
|
+
return category
|
|
60
|
+
except Exception as e:
|
|
61
|
+
print(e)
|
|
62
62
|
pass
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: websiteclassificationapi
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.15.1
|
|
4
4
|
Summary: Website classification API
|
|
5
5
|
Home-page: https://github.com/websitecategorization/websiteclassificationnapi
|
|
6
6
|
Author-email: info@websitecategorizationapi.com
|
|
7
7
|
License: UNKNOWN
|
|
8
8
|
Project-URL: Homepage, https://www.websitecategorizationapi.com
|
|
9
9
|
Project-URL: AI Tools Blocklist, https://www.aitoolsblocklist.com
|
|
10
|
+
Project-URL: Resume Reader API, http://resumereaderapi.com
|
|
10
11
|
Description: # Website Classification API
|
|
11
12
|
|
|
12
13
|
This is the Python3 client library for [URL Classification](https://www.websitecategorizationapi.com) service.
|
|
@@ -110,11 +111,13 @@ Description: # Website Classification API
|
|
|
110
111
|
|
|
111
112
|
## Our other services
|
|
112
113
|
|
|
113
|
-
Companies that manage internet access often start with a [web filtering database](https://webfilteringdatabase.com) to review how domains are categorized. This supports better decisions around policy cr
|
|
114
|
-
eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://webfilteringservice.com) to apply those controls in production.
|
|
114
|
+
Companies that manage internet access often start with a [web filtering database](https://www.webfilteringdatabase.com) to review how domains are categorized. This supports better decisions around policy cr
|
|
115
|
+
eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://www.webfilteringservice.com) to apply those controls in production.
|
|
115
116
|
|
|
116
117
|
|
|
117
|
-
We also provide
|
|
118
|
+
We also provide an [Anonymization API](https://www.anonymizationapi.com) for privacy-preserving media and data workflows.
|
|
119
|
+
|
|
120
|
+
Schools and libraries subject to the Children's Internet Protection Act need more than generic web categories — they need a purpose-built [CIPA web filtering](https://www.cipawebfiltering.com) database with 120 million domains organized into 57+ content categories aligned to federal compliance requirements. Pairing categorization with threat intelligence strengthens any filtering deployment, and our [phishing detection API](https://www.phishingdetectionapi.com) delivers real-time lookups against 390,000+ DNS-verified active phishing domains so that malicious URLs are blocked before they reach end users. Together, these services give IT teams the classification depth and security coverage needed to protect students, staff, and network infrastructure.
|
|
118
121
|
|
|
119
122
|
## AI explainability
|
|
120
123
|
|
|
@@ -167,9 +170,9 @@ Description: # Website Classification API
|
|
|
167
170
|
|
|
168
171
|
|
|
169
172
|
|
|
170
|
-
Our digital solutions are trusted by organizations seeking reliable, secure, and innovative tools.
|
|
173
|
+
Our digital solutions are trusted by organizations seeking reliable, secure, and innovative tools. Protect privacy in every scenario using our [image anonymization](https://www.anonymizationapi.com) platform, engineered to meet global standards and inspired by research from [MIT](https://web.mit.edu), while staying informed with insights from [Harvard](https://www.harvard.edu) and approaches found at [Stanford](https://www.stanford.edu).
|
|
171
174
|
|
|
172
|
-
Business growth is supported through our [corporate enrichment data](https://www.companydataapi.com), delivering actionable intelligence much like the work at [Cambridge](https://www.cam.ac.uk). For cybersecurity and research teams, our [domain dataset](https://www.urlcategorizationdatabase.com) offers extensive categorization, paralleling the data-centric methods at [Berkeley](https://www.berkeley.edu).
|
|
175
|
+
Business growth is supported through our [corporate enrichment data](https://www.companydataapi.com), delivering actionable intelligence much like the work at [Cambridge](https://www.cam.ac.uk). For cybersecurity and research teams, our [domain dataset](https://www.urlcategorizationdatabase.com) offers extensive categorization, paralleling the data-centric methods at [Berkeley](https://www.berkeley.edu).
|
|
173
176
|
|
|
174
177
|
By aligning our solutions with the excellence demonstrated at [Yale](https://www.yale.edu) and [Cornell](https://www.cornell.edu), we ensure that your organization stays at the cutting edge—combining technology, research, and practical results for every challenge.
|
|
175
178
|
|
|
@@ -306,6 +309,10 @@ Description: # Website Classification API
|
|
|
306
309
|
|
|
307
310
|
For teams building acceptable-use or data-loss-prevention policies around generative AI, the [AI Tools Blocklist](https://www.aitoolsblocklist.com) complements this classifier with a purpose-built feed of AI-tool domains grouped into functional categories (chatbots, code assistants, media generators, voice cloning, and more). It answers a question generic categorization cannot: not just "is this site AI-related," but "which kind of AI tool is it," which is what granular blocking policies require.
|
|
308
311
|
|
|
312
|
+
Website classification at massive scale also applies to discovering acquisition candidates across the full web. Our [web-scale deal origination platform](https://www.acquisitionuniverse.com) screens over 100 million classified domains against buyer acquisition theses, extracting 15 operational signals per company from their public web presence. Private equity firms, search funds, and corporate development teams use the pipeline to surface non-obvious targets whose websites reveal strong fit signals — leadership depth, recurring revenue indicators, compliance readiness — that conventional company databases never capture.
|
|
313
|
+
|
|
314
|
+
The same classification engine powers contextual audience segments for programmatic advertising without cookies. Our [cookieless advertising data platform](https://www.cookielessaudiences.com) delivers domain datasets pre-categorized under the IAB content taxonomy, enabling DSPs and publishers to target audiences based on page context rather than user-level tracking. With Chrome, Safari, and Firefox deprecating third-party cookies, domain-level contextual classification is becoming the primary signal for brand-safe, regulation-compliant ad placement at scale.
|
|
315
|
+
|
|
309
316
|
## Useful resources used in development of website categorization
|
|
310
317
|
|
|
311
318
|
- [Tensorflow](https://www.tensorflow.org/)
|
|
@@ -320,6 +327,7 @@ Description: # Website Classification API
|
|
|
320
327
|
|
|
321
328
|
- [Top shopify stores](https://www.leadsquantum.com)
|
|
322
329
|
- [AI Tools Blocklist](https://www.aitoolsblocklist.com)
|
|
330
|
+
- [CV parser](http://resumereaderapi.com) — AI resume parsing API that turns PDF/DOCX resumes into structured JSON
|
|
323
331
|
|
|
324
332
|
Keywords: website categorization,classification,categorization
|
|
325
333
|
Platform: UNKNOWN
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|