diff --git a/README.md b/README.md index 15cfb71..289bae8 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ - +   #  **ONLINE TOOLS ([codetabs.com](https://codetabs.com))** -**version 0.9.1** +**version 0.9.2** 1. [Count LOC (lines of code) online from github/gitlab repos or zipped uploaded folder](#count-loc-online) 2. [CORS proxy](#cors-proxy) @@ -173,7 +173,9 @@ Response JSON : ## **ALEXA** -Tool for know Alexa Ranking Top 1 million about a website. +### **Update Feb-23 : Alexa Rank is gone. This file is deprecated and is not being updated anymore.** **This file was last updated on February 1, 2023.** + +**Tool for know Alexa Ranking Top 1 million about a website** ### **[Get Alexa Ranking Online](https://codetabs.com/alexa/alexa-ranking.html)** diff --git a/alexa/alexa.go b/alexa/alexa.go index 72f7d89..92a0a1e 100644 --- a/alexa/alexa.go +++ b/alexa/alexa.go @@ -10,7 +10,7 @@ import ( "os" "strconv" "strings" - "time" + //"time" u "github.com/jolav/codetabs/_utils" ) @@ -114,7 +114,7 @@ func (a *alexa) loadDataInMemory() { func OnceADayTask() { a = newAlexa(false) - t := time.Now() + /*t := time.Now() n := time.Date(t.Year(), t.Month(), t.Day(), 3, 10, 10, 0, t.Location()) d := n.Sub(t) if d < 0 { @@ -125,10 +125,11 @@ func OnceADayTask() { time.Sleep(d) d = 24 * time.Hour a.downloadDataFile() - } -} + }*/ + a.loadDataInMemory() +} -func (a *alexa) downloadDataFile() { +/*func (a *alexa) downloadDataFile() { a.deleteZip() err := u.DownloadFile(a.config.ZipFilePath, a.config.DataFileURL) if err != nil { @@ -160,7 +161,7 @@ func (a *alexa) unzipCsv() { if err != nil { log.Printf("ERROR unzipping data %s\n", err) } -} +}*/ func newAlexa(test bool) alexa { a := alexa{ diff --git a/main.go b/main.go index 3d8b6b3..d99e478 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ import ( "github.com/jolav/codetabs/weather" ) -var version = "0.9.1" +var version = "0.9.2" var when = "undefined" type Conf struct { diff --git a/www/_public/templates/version.html b/www/_public/templates/version.html index 55247d7..2423c88 100644 --- a/www/_public/templates/version.html +++ b/www/_public/templates/version.html @@ -2,7 +2,7 @@
+
+
+
+
+
+
+ Description
+
+
+
+ - Tool for know Alexa Ranking Top 1 million about a website.
+
+
+
+ -
+ Limit : 5 requests per second. Once reached subsequent requests will result in
+ error
+ 429 (too many requests)
+ until your quota is cleared.
+
+
+
+
+
+
+
+ Endpoint - Get Alexa Ranking from a website
+
+
+ http Request :
+
GET https://api.codetabs.com/v1/alexa?web=domain.tld
-
- examples :
-
-
+
+ examples :
+
+
https://api.codetabs.com/v1/alexa?web=github.com
https://api.codetabs.com/v1/alexa?web=expressjs.com
-
- response :
-
+
+ response :
+
{
"domain": "github.com",
"rank" : "63"
}
-
-
+