Archived
14 lines
440 B
Python
14 lines
440 B
Python
import requests
|
|
|
|
slug = "akismet"
|
|
response = requests.get("https://api.wordpress.org/plugins/info/1.2/?action=query_plugins"
|
|
f"&slug={slug}")
|
|
response_json = response.json()
|
|
response_json = response_json['plugins'][0]
|
|
# print(response_json)
|
|
print(response_json['downloaded'])
|
|
print(response_json['rating'])
|
|
print(response_json['active_installs'])
|
|
print(response_json['num_ratings'])
|
|
|
|
# TODO: Implement warning system |