Skip to content

Commit

Permalink
0.9.2 alexa rank shut down, last update Feb 1, 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
jolav committed Oct 26, 2023
1 parent b54a7f0 commit 751caca
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 70 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

![Version](https://img.shields.io/badge/version-0.9.1-orange.svg)
![Version](https://img.shields.io/badge/version-0.9.2-orange.svg)
![Maintained YES](https://img.shields.io/badge/Maintained%3F-yes-green.svg)
![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)

# ![logo](https://github.com/jolav/codetabs/blob/master/www/_public/icons/ct/ct64r.png?raw=true) **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)
Expand Down Expand Up @@ -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)**

Expand Down
13 changes: 7 additions & 6 deletions alexa/alexa.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"os"
"strconv"
"strings"
"time"
//"time"

u "github.com/jolav/codetabs/_utils"
)
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion www/_public/templates/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2 class="centerText">
API doc
<small>
<small>(version 0.9.1)</small>
<small>(version 0.9.2)</small>
</small>
</h2>
<!-- End -->
119 changes: 62 additions & 57 deletions www/alexa/alexa-ranking.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,80 +21,85 @@ <h1 class="big">
<img class="verticalImage" alt="Logo" src="/_public/icons/alexa48.png">
<span> Alexa Ranking</span>
</h1>
</header>

<section class="form" id="getForm">
<form class="getDomain" onsubmit="return false">
<input type="text" required id="domainName" placeholder="domain.tld">
<span id="getDomain" class="action">Get Alexa</span>
</form>
</section>

<div class="rank centerText">
<div id="rankResult">---</div>
<div id="rankResult2"></div>
</div>

<!-- Version -->
<!--#include file="/_public/templates/version.html" -->

<section class="description">
<div class="centerText">
<strong>Description</strong>
</div>
<div class="leftText">
<span>
- Tool for know Alexa Ranking Top 1 million about a website.
</span>
<br>
<span>
-
<span class="red">Limit</span> : 5 requests per second. Once reached subsequent requests will result in error
429 (too many requests)
until your quota is cleared.
<br>
</span>
</div>
</section>

<section class="endpoint">
<div class="centerText">
<strong>Endpoint - Get Alexa Ranking from a website</strong>
<h2 class="centerText deprecated" style="border: 5px solid #ff6565;
background-color: #ff6565;">Update Feb-23 : Alexa Rank is gone<br>.
This file is deprecated and is not being updated anymore.<br>
This file was last updated on February 1, 2023.</h2>

<section class="form" id="getForm">
<form class="getDomain" onsubmit="return false">
<input type="text" required id="domainName" placeholder="domain.tld">
<span id="getDomain" class="action">Get Alexa</span>
</form>
</section>

<div class="rank centerText">
<div id="rankResult">---</div>
<div id="rankResult2"></div>
</div>
<div class="leftText">
<strong>http Request : </strong>
<code class="red">

<!-- Version -->
<!--#include file="/_public/templates/version.html" -->

<section class="description">
<div class="centerText">
<strong>Description</strong>
</div>
<div class="leftText">
<span>
- Tool for know Alexa Ranking Top 1 million about a website.
</span>
<br>
<span>
-
<span class="red">Limit</span> : 5 requests per second. Once reached subsequent requests will result in
error
429 (too many requests)
until your quota is cleared.
<br>
</span>
</div>
</section>

<section class="endpoint">
<div class="centerText">
<strong>Endpoint - Get Alexa Ranking from a website</strong>
</div>
<div class="leftText">
<strong>http Request : </strong>
<code class="red">
GET https://api.codetabs.com/v1/alexa?web=domain.tld
</code>
<br>
<strong>examples : </strong>
<br>
<code>
<br>
<strong>examples : </strong>
<br>
<code>
<a href="https://api.codetabs.com/v1/alexa?web=github.com"> https://api.codetabs.com/v1/alexa?web=github.com</a>
<br>
<a href="https://api.codetabs.com/v1/alexa?web=expressjs.com"> https://api.codetabs.com/v1/alexa?web=expressjs.com</a>
</code>
<br>
<strong>response : </strong>
<pre class="marginLeft">
<br>
<strong>response : </strong>
<pre class="marginLeft">
{
"domain": "github.com",
"rank" : "63"
}
</pre>
</div>
</section>
</div>
</section>

<br>
<br>

<!-- Footer -->
<!--#include file="/_public/templates/footer.html" -->
<!-- Footer -->
<!--#include file="/_public/templates/footer.html" -->

<!-- CSS -->
<link rel="stylesheet" type="text/css" href="./../apis.css">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="./../apis.css">

<script type='text/javascript' src='./../mode.js'></script>
<script async src="./alexa.js"></script>
<script type='text/javascript' src='./../mode.js'></script>
<script async src="./alexa.js"></script>

</body>

Expand Down
5 changes: 3 additions & 2 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ <h1 class="big centerText">
<strong>Alexa ranking</strong>
</div>
<p>
Check any website position in Alexa Top 1 million Ranking.
<br>Daily Updates.
<div class="deprecated">Alexa Rank is gone. This file is deprecated and is not being updated anymore.Last
updated on February 1, 2023.</div>
Check any website position in Alexa Top 1 million Ranking.
</p>
<div class="justifyRight">
<small>API</small>
Expand Down

0 comments on commit 751caca

Please sign in to comment.