mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-07 06:24:35 +00:00
Sites list updated
This commit is contained in:
+1829
-1584
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,10 @@ RANKS.update({
|
|||||||
'50000000': '10M',
|
'50000000': '10M',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
SEMAPHORE = threading.Semaphore(10)
|
||||||
|
|
||||||
def get_rank(domain_to_query, site, print_errors=True):
|
def get_rank(domain_to_query, site, print_errors=True):
|
||||||
|
with SEMAPHORE:
|
||||||
#Retrieve ranking data via alexa API
|
#Retrieve ranking data via alexa API
|
||||||
url = f"http://data.alexa.com/data?cli=10&url={domain_to_query}"
|
url = f"http://data.alexa.com/data?cli=10&url={domain_to_query}"
|
||||||
xml_data = requests.get(url).text
|
xml_data = requests.get(url).text
|
||||||
|
|||||||
Reference in New Issue
Block a user