Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 11ce9cb
Showing
15 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 HATI | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# pywhatcms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .pywhatcms import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import requests | ||
|
||
def whatcms(key, url): | ||
whatcms.r = requests.get('https://whatcms.org/APIEndpoint/Detect?key=' + key + '&url=' + url).json() | ||
whatcms.name = whatcms.r['result']['name'] | ||
whatcms.code = whatcms.r['result']['code'] | ||
whatcms.confidence = whatcms.r['result']['confidence'] | ||
whatcms.cms_url = whatcms.r['result']['cms_url'] | ||
whatcms.version = whatcms.r['result']['version'] | ||
whatcms.msg = whatcms.r['result']['msg'] | ||
whatcms.id = whatcms.r['result']['id'] | ||
whatcms.request = whatcms.r['request'] | ||
whatcms.request_web = whatcms.r['request_web'] |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Metadata-Version: 2.1 | ||
Name: pywhatcms | ||
Version: 1.0.6 | ||
Summary: Unofficial WhatCMS API package | ||
Home-page: https://github.com/HA71/pywhatcms | ||
Author: HATI | ||
Author-email: bisha@protonmail.com | ||
License: UNKNOWN | ||
Description: # PyWhatcms | ||
Python package for whatcms.com API | ||
|
||
The package provides a simple way to use the whatcms.org API for detecting 467 different Content Management Systems | ||
|
||
## Installation | ||
``` | ||
pip install pywhatcms | ||
``` | ||
|
||
## Usage | ||
First of all, import pywhatcms: | ||
``` | ||
from pywhatcms import whatcms | ||
``` | ||
Query a domain: | ||
``` | ||
whatcms('API-KEY', 'blog.underc0de.org') | ||
``` | ||
Obtain info: | ||
``` | ||
whatcms.name | ||
whatcms.code | ||
whatcms.confidence | ||
whatcms.cms_url | ||
whatcms.version | ||
whatcms.msg | ||
whatcms.id | ||
whatcms.request | ||
whatcms.request_web | ||
``` | ||
|
||
Platform: UNKNOWN | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Operating System :: OS Independent | ||
Description-Content-Type: text/markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
README.md | ||
setup.py | ||
pywhatcms/__init__.py | ||
pywhatcms/pywhatcms.py | ||
pywhatcms.egg-info/PKG-INFO | ||
pywhatcms.egg-info/SOURCES.txt | ||
pywhatcms.egg-info/dependency_links.txt | ||
pywhatcms.egg-info/requires.txt | ||
pywhatcms.egg-info/top_level.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pywhatcms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .pywhatcms import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import requests | ||
|
||
def whatcms(key, url): | ||
whatcms.r = requests.get('https://whatcms.org/APIEndpoint/Detect?key=' + key + '&url=' + url).json() | ||
whatcms.name = whatcms.r['result']['name'] | ||
whatcms.code = whatcms.r['result']['code'] | ||
whatcms.confidence = whatcms.r['result']['confidence'] | ||
whatcms.cms_url = whatcms.r['result']['cms_url'] | ||
whatcms.version = whatcms.r['result']['version'] | ||
whatcms.msg = whatcms.r['result']['msg'] | ||
whatcms.id = whatcms.r['result']['id'] | ||
whatcms.request = whatcms.r['request'] | ||
whatcms.request_web = whatcms.r['request_web'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import setuptools | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="pywhatcms", | ||
version="1.0.6", | ||
author="HATI", | ||
author_email="bisha@protonmail.com", | ||
description="Unofficial WhatCMS API package", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/HA71/pywhatcms", | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
], | ||
install_requires=[ | ||
'requests' | ||
] | ||
) |