Get siterank & other data from Alexa Web Information Service
Project description
SiteRank-Alexa
This is vanilla Python library for gathering data about website ranks from Alexa!
It is ultra customizable.
Installation
You can use pip install alexa-siterank
or pip install git+https://github.com/mytja/SiteRank-Alexa
⚡️ Wanna try out new OTR function! It is up to 5 times faster than current functions
⚡️ Wanna try out new asynchronous function! It requires httpx
Usage
Get PageRank
from alexa_siterank import *
print(getRank("google.com"))
Output:
{
"rank":{
"global":1,
"us":1
},
"rating":false
}
Get Top keywords
from alexa_siterank import *
print(getTopKeywords("google.com"))
Output:
{
"titles":[
"keyword",
"metric_one",
"metric_two"
],
"google.com":[
[
{
"title":"keyword",
"value":"gmail"
},
{
"title":"metric_one",
"value":"5.11%"
},
{
"title":"metric_two",
"value":"83.27%"
}
],
[
{
"title":"keyword",
"value":"google translate"
},
{
"title":"metric_one",
"value":"3.84%"
},
{
"title":"metric_two",
"value":"59.46%"
}
],
[
{
"title":"keyword",
"value":"google maps"
},
{
"title":"metric_one",
"value":"1.93%"
},
{
"title":"metric_two",
"value":"55.67%"
}
],
[
{
"title":"keyword",
"value":"translate"
},
{
"title":"metric_one",
"value":"1.72%"
},
{
"title":"metric_two",
"value":"51.89%"
}
],
...
Get visitors
from alexa_siterank import *
print(getVisitors("google.com"))
Output:
[
{
"pageviews_per_user":"25.22",
"code":"US",
"visitors_percent":"19.5",
"name":"United States",
"pageviews_percent":"27.7"
},
{
"pageviews_per_user":"28.07",
"code":"IN",
"visitors_percent":"10.4",
"name":"India",
"pageviews_percent":"16.5"
},
{
"pageviews_per_user":"26.3",
"code":"JP",
"visitors_percent":"5.2",
"name":"Japan",
"pageviews_percent":"7.8"
}
]
Get competitors
from alexa_siterank import *
print(getCompetitors("google.com"))
Output:
{
"site":"google.com",
"competitors":[
"youtube.com",
"wikipedia.org",
"facebook.com",
"vk.com"
]
}
Get SiteRank 3 month history
from alexa_siterank import *
print(getRankHistory("google.com"))
Output:
{
"3mrank":{
"20201116":"1",
"20201117":"1",
"20201118":"1",
"20201119":"1",
"20201120":"1",
"20201121":"1",
"20201122":"1",
"20201123":"1",
"20201124":"1",
"20201125":"1",
"20201126":"1",
...
}
}
Disclaimer
Developer
The developer(s) of this project aren't responsible for any code usage in non-intended ways!
Community / People using this project
With downloading any modified and/or original code from this repository, from any source, you agree, that you will use it only for non-production, non-commercial, private uses and for educational purposes, and in monthly limits! If not, you are responsible for non-legal usage of this project!
If you want to use commercial version, then you have to get API token from AWIS.
This project
This project can only be used for private, non-commercial, non-production uses, and for educational uses.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for alexa_siterank-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f49aedeaef1fb0be9a085661705bc5a28921f2c2f60de1fae50c9add0b9395 |
|
MD5 | 9c4e746033d892c49ad28ef02590c170 |
|
BLAKE2b-256 | 5da7afef93bf12cc9c3ecddab125bcaa7987f4c06c50c8a8242d6b1b16985de0 |