websiteclassificationapi 2.14__tar.gz → 2.15__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 arnu515
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,334 @@
1
+ Metadata-Version: 2.1
2
+ Name: websiteclassificationapi
3
+ Version: 2.15
4
+ Summary: Website classification API
5
+ Home-page: https://github.com/websitecategorization/websiteclassificationnapi
6
+ Author-email: info@websitecategorizationapi.com
7
+ Project-URL: Homepage, https://www.websitecategorizationapi.com
8
+ Project-URL: AI Tools Blocklist, https://www.aitoolsblocklist.com
9
+ Keywords: website categorization,classification,categorization
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Environment :: GPU :: NVIDIA CUDA :: 11.3
12
+ Classifier: Environment :: GPU :: NVIDIA CUDA :: 11.0
13
+ Classifier: Environment :: GPU :: NVIDIA CUDA
14
+ Classifier: Environment :: GPU :: NVIDIA CUDA :: 11.2
15
+ Classifier: Environment :: GPU :: NVIDIA CUDA :: 10.1
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+
20
+ # Website Classification API
21
+
22
+ This is the Python3 client library for [URL Classification](https://www.websitecategorizationapi.com) service.
23
+
24
+ Our Website Categorization API provides accurate URL/webpage classification based on the widely trusted IAB Taxonomy.
25
+
26
+ Categorizations are done in real-time and using full-path URLs.You can also use our API to classify plain text.
27
+
28
+ We return categorizations of URLS for the following taxonomies:
29
+
30
+ IAB, version 3, with 4 Tiers (taxonomy from Internet Advertising Bureau - IAB,
31
+ IAB, version 2, with 4 Tiers (taxonomy from Internet Advertising Bureau - IAB
32
+ IPTC NewsCodes, especially suitable for News Categorization
33
+ Web Content Filtering Taxonomy (44 categories)
34
+ Google Shopping Taxonomy, used by millions of online retailers (5474 categories)
35
+ Shopify Taxonomy, used by millions of online stores (10560 categories)
36
+ Amazon Taxonomy (39004 categories)
37
+
38
+
39
+ We also return the following classifications / enriched data about each URL:
40
+
41
+ Detection of Malware/Social Engineering/Mailicious Software
42
+ Web Technologies used
43
+ Likely Buyer Personas
44
+ Topics
45
+ Key Entities Named
46
+ Sentiment Analysis
47
+ Similar companies / Competitors
48
+ Similar domains
49
+ Tags
50
+ Keywords
51
+
52
+
53
+ For those looking for eCommerce classification, we also provide [Smart Product Categorization AI](https://www.productcategorization.com). It supports Shopify, Google Shopping, eBay and 120 other marketplaces.
54
+
55
+ Website classification API s a python library that allows to classify websites based on IAB.
56
+
57
+ ## Installation
58
+ ```
59
+ pip install websiteclassificationapi
60
+ ```
61
+ ## Requirements
62
+
63
+ Only Python 3 is supported. You need an API key which you can obtain at our website.
64
+ Python library requires only requests package.
65
+
66
+ ## Documentation
67
+
68
+ More detailed API documentation on URL Classification is [available here](https://www.websitecategorizationapi.com/api.php).
69
+
70
+ ## Examples
71
+
72
+ Please check our API documentation page on our website for most up to date examples.
73
+ ```
74
+ from websiteclassificationapi import websiteclassificationapi
75
+
76
+ api_key = 'h2XurA' # you can get API key from www.websitecategorizationapi.com
77
+ url = 'www.alpha-quantum.com' # can be set to any valid URL
78
+ classifier_type = 'iab1' # 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
79
+
80
+ # calling the API
81
+ print(websiteclassificationapi.get_categorization(url,api_key,classifier_type))
82
+ ```
83
+
84
+ ## How to select classifiers of different taxonomies
85
+
86
+ NEW (update October 2024): Our newest version of API supports classifications for up to 4 Tiers. It returns one or more of 700 IAB categories.
87
+
88
+ 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.
89
+
90
+ IAB Tier 1 categorization returns probabilities of text being classified as one of 29 possible categories.
91
+
92
+ IAB Tier 2 categorization returns probabilities of text being classified as one of 447 possible categories.
93
+
94
+ Ecommerce Tier 1 categorization returns probabilities of text being classified as one of 21 possible categories.
95
+
96
+ Ecommerce Tier 2 website categorization returns probabilities of text being classified as one of 182 possible categories.
97
+
98
+ Ecommerce Tier 3 website categorization returns probabilities of text being classified as one of 1113 possible categories.
99
+
100
+ ## Taxonomies
101
+
102
+ The list of categories available by classifier is also known as Taxonomy. There are many taxonomies available, some are standard are well known, e.g. IAB taxonomy is well suited for ads and advertising in general, whereas Facebook product categories taxonomy
103
+ is appropriate for ecommerce field.
104
+
105
+ Taxonomy also differ in how many tiers, levels, or depths do they support. E.g. taxonomy may only support 1 set of main categories, or it can further subcategories.
106
+
107
+ The categorization in the form of Tier 1/Tier 2/Tier 3/.... is also known as taxonomy path.
108
+
109
+ The classifiers can be either built in a way that they predict single Tier categories or they can return full taxonomy paths. It really depends on the use case what is most appropriate.
110
+
111
+ You can find more information about IAB taxonomy at this page: https://www.iab.com/guidelines/content-taxonomy/.
112
+
113
+ Taxonomy should be chosen in a way that it suits your use case. E.g. let us say you have an online store and currently you just list your products without any categorizations.
114
+
115
+ Then it may be very valuable if you could provide some kind of menus that categorize products in different verticals.
116
+
117
+ Why? Because your users may more easily find your products, you will have more subpages that can be indexed by search engines and thus provide you with more traffic and visits.
118
+
119
+ Having verticals set up may also mean better filtering and lead to higher conversions and thus lower cost of acquisition. There are a multitude of opportunities in adding categorization to an online store.
120
+
121
+ ## Our other services
122
+
123
+ 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
124
+ eation, reporting, and risk visibility. Many of those teams also evaluate a [web filtering service](https://webfilteringservice.com) to apply those controls in production.
125
+
126
+
127
+ We also provide an [Anonymization API](https://www.anonymizationapi.com) for privacy-preserving media and data workflows.
128
+
129
+ 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.
130
+
131
+ ## AI explainability
132
+
133
+ One of the unique features of classifiers is that they provide machine learning interpretability or artificial intelligence explainability (XAI) in the form of words that most contribute to resulting classification.
134
+
135
+ Example 1 of explainability:
136
+ ![Image1](https://www.websitecategorizationapi.com/product_categorization.png)
137
+
138
+ Example 2 of explainability:
139
+ ![Image1](https://www.websitecategorizationapi.com/productcategorizationnew1.jpg)
140
+
141
+ Why the need of AI explainability?
142
+
143
+ AI models are increasingly being used in ways that affect humans. E.g. you may apply for a loan at the bank and get rejected, but even though a human may have sent or explained you this, the decision may have actually been made by a machine learning model.
144
+
145
+ Machine learning models making decisions is increasingly part of every day and because often these decisions are made by what could be termed black boxes, there is increasing desire for having ML decisions made in a way that are explainable.
146
+
147
+ There are also many regulations that demand this, e.g. GDPR.
148
+
149
+ ## Support for languages
150
+
151
+ Classification service supports classifications of websites in 150 languages.
152
+
153
+ ## Offline database of categorized domains
154
+
155
+ We offer offline [URL database](https://www.websitecategorizationapi.com/url_database.php) of millions of categorized domains. It can be used web content filtering, AdTech marketing, cybersecurity, brand safety, contextual targeting.
156
+
157
+
158
+ It is ideal for those use cases where you require very low latency of requests, which can be achieved with pre-classified websites stored in database.
159
+
160
+ Another great source for [URL categorization database](https://www.urlcategorizationdatabase.com/)
161
+
162
+ ## Handling websites with no texts
163
+
164
+ When encountering websites that have no text and just images, our classifier relies on online optical character recognition API service to extract text (if any available) from images on the website. And then classify it.
165
+
166
+ To deal with potential duplicates we use the reverse IP lookup of domains to find similar domains that are hosted on the same IP.
167
+
168
+ ## Application of website categorization to technologies usage
169
+
170
+ We have collected usage of technologies by millions of websites, by combining this with categorization, one can find interesting results.
171
+
172
+ Here is for example usage of Intercom across industry verticals:
173
+
174
+ ![Image1](https://user-images.githubusercontent.com/58834207/238138013-d59d68b8-d7e3-42d2-bdda-100924669b72.png)
175
+
176
+ Based on 50 millions of usage points we built an AI recommender which can predict which technologies for company using a set of technologies.
177
+
178
+ Here are e.g. recommendations for company using Mouse Flow: <table class="table" style="font-size:20px;line-height:30px"><thead><tr><th>Technology</th><th>AI Recommendation Score </th><th>Website</th></tr></thead><tbody><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-AppNexus">AppNexus</a></td><td>0.15</td><td>http://appnexus.com</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Microsoft Clarity">Microsoft Clarity</a></td><td>0.14</td><td>https://clarity.microsoft.com</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Osano">Osano</a></td><td>0.14</td><td>https://www.osano.com/</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Jetpack">Jetpack</a></td><td>0.14</td><td>https://jetpack.com</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Raphael">Raphael</a></td><td>0.14</td><td>https://dmitrybaranovskiy.github.io/raphael/</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Svelte">Svelte</a></td><td>0.13</td><td>https://svelte.dev</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-AWS Certificate Manager">AWS Certificate Manager</a></td><td>0.12</td><td>https://aws.amazon.com/certificate-manager/</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Extendify">Extendify</a></td><td>0.11</td><td>https://extendify.com</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Kendo UI">Kendo UI</a></td><td>0.11</td><td>https://www.telerik.com/kendo-ui</td></tr><tr><td><a href="https://www.alpha-quantum.com/technologies/websites-using-Flywheel">Flywheel</a></td><td>0.11</td><td>https://getflywheel.com</td></tr></tbody></table>
179
+
180
+
181
+
182
+ 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).
183
+
184
+ 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).
185
+
186
+ 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.
187
+
188
+
189
+ ## Example classifications
190
+
191
+ Example classification for website www.github.com:
192
+ ```
193
+ {
194
+ "classification": [
195
+ {
196
+ "category": "Technology & Computing",
197
+ "value": 0.7621352908406164
198
+ },
199
+ {
200
+ "category": "Business and Finance",
201
+ "value": 0.0785701408756428
202
+ },
203
+ {
204
+ "category": "Video Gaming",
205
+ "value": 0.06626958968249749
206
+ },
207
+ {
208
+ "category": "Fine Art",
209
+ "value": 0.017105357862223433
210
+ },
211
+ {
212
+ "category": "Hobbies & Interests",
213
+ "value": 0.016812511656388394
214
+ },
215
+ {
216
+ "category": "Sports",
217
+ "value": 0.011396157737341801
218
+ },
219
+ {
220
+ "category": "Home & Garden",
221
+ "value": 0.009099685741207822
222
+ },
223
+ {
224
+ "category": "Personal Finance",
225
+ "value": 0.0076400890345109055
226
+ },
227
+ {
228
+ "category": "News and Politics",
229
+ "value": 0.006692288300928684
230
+ },
231
+ {
232
+ "category": "Careers",
233
+ "value": 0.0039930258544077606
234
+ },
235
+ {
236
+ "category": "Automotive",
237
+ "value": 0.0029276292555247764
238
+ },
239
+ {
240
+ "category": "Events and Attractions",
241
+ "value": 0.0026449624402393084
242
+ },
243
+ {
244
+ "category": "Shopping",
245
+ "value": 0.0023606962223306537
246
+ },
247
+ {
248
+ "category": "Family and Relationships",
249
+ "value": 0.0023174171750800186
250
+ },
251
+ {
252
+ "category": "Music and Audio",
253
+ "value": 0.0020517145262615513
254
+ },
255
+ {
256
+ "category": "Movies",
257
+ "value": 0.0018936850100483473
258
+ },
259
+ {
260
+ "category": "Travel",
261
+ "value": 0.0009448942095545797
262
+ },
263
+ {
264
+ "category": "Science",
265
+ "value": 0.0008432696857311802
266
+ },
267
+ {
268
+ "category": "Pets",
269
+ "value": 0.0006956402098649299
270
+ },
271
+ {
272
+ "category": "Television",
273
+ "value": 0.0005261918310662409
274
+ },
275
+ {
276
+ "category": "Real Estate",
277
+ "value": 0.0005058920662560916
278
+ },
279
+ {
280
+ "category": "Religion & Spirituality",
281
+ "value": 0.000492253420442475
282
+ },
283
+ {
284
+ "category": "Healthy Living",
285
+ "value": 0.0004690261931844088
286
+ },
287
+ {
288
+ "category": "Medical Health",
289
+ "value": 0.0004467617749304944
290
+ },
291
+ {
292
+ "category": "Education",
293
+ "value": 0.00036333686743226124
294
+ },
295
+ {
296
+ "category": "Food & Drink",
297
+ "value": 0.0003463620639422737
298
+ },
299
+ {
300
+ "category": "Books and Literature",
301
+ "value": 0.00027078317064036986
302
+ },
303
+ {
304
+ "category": "Style & Fashion",
305
+ "value": 0.00011770141998920516
306
+ },
307
+ {
308
+ "category": "Pop Culture",
309
+ "value": 0.00006764487171529734
310
+ }
311
+ ],
312
+ "html": "29101",
313
+ "language": "en",
314
+ "status": 200
315
+ }
316
+ ```
317
+
318
+
319
+ 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.
320
+
321
+ ## Useful resources used in development of website categorization
322
+
323
+ - [Tensorflow](https://www.tensorflow.org/)
324
+
325
+ - [Website categorization](https://medium.com/website-categorization/website-categorization-api-ca6c3e0f6c4d)
326
+
327
+ - [Sklearn](https://scikit-learn.org/stable/)
328
+
329
+ - [Smart product categorization](https://medium.com/product-categorization/product-categorization-introduction-d62bb92e8515)
330
+
331
+ - [Introduction to URL Categorization Database](https://www.alpha-quantum.com/blog/url-database/url-database/)
332
+
333
+ - [Top shopify stores](https://www.leadsquantum.com)
334
+ - [AI Tools Blocklist](https://www.aitoolsblocklist.com)
@@ -105,7 +105,9 @@ Companies that manage internet access often start with a [web filtering database
105
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.
106
106
 
107
107
 
108
- We also provide APIs for other tasks: [Redaction API](https://www.redactionapi.net) and [Content Moderation API](https://www.contentmoderationapi.net) as well as [Anonymization API](https://www.anonymizationapi.com).
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. With the [image moderation api](https://www.contentmoderationapi.net), companies gain the ability to filter and manage user-generated visuals, all while staying informed with insights from [Harvard](https://www.harvard.edu). Protect privacy in every scenario using our [image anonymization](https://www.anomyizationapi.com) platform, engineered to meet global standards and inspired by research from [MIT](https://web.mit.edu). When sensitive information must be protected, our [pii redaction service](https://www.redactionapi.net) ensures that personal data is removed efficiently, reflecting approaches found at [Stanford](https://www.stanford.edu).
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). Legal departments benefit from our [automated contract review](https://www.aicontractreviewtool.com), streamlining compliance and review processes as promoted by [Oxford](https://www.ox.ac.uk).
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
 
@@ -11,7 +11,7 @@ setup(
11
11
  name="websiteclassificationapi",
12
12
 
13
13
  # The version of your project.
14
- version="2.14",
14
+ version="2.15",
15
15
 
16
16
  packages=find_packages(exclude="tests"),
17
17