ming 3 rokov pred
rodič
commit
a1a201c3a7
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      similar_web/main.py

+ 2 - 1
similar_web/main.py

@@ -78,6 +78,7 @@ async def get_domain(req:q_req):
         
         js=''
         for i in range(0,50):
+            print('Try'+str(i)+'times')
             while True:
                 try:
                     response = requests.request("GET", url, headers=headers, params=querystring)
@@ -85,7 +86,7 @@ async def get_domain(req:q_req):
                 except:
                     continue
                 break
-                
+
         jsdict={'SiteName':js['name'],'Description':js['siteDescription'],'GlobalRank':js['globalRank'],'Title':js['name'],'Category':js['categoryRank']['taxonomy'],'CountryRank':js['countryRank']['rank']}