Your Name 3 lat temu
rodzic
commit
23ed55ee1f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      similar_server/main.py

+ 1 - 1
similar_server/main.py

@@ -61,7 +61,7 @@ async def get_domain(domain_name):
 #    desc=js['siteDescription']
 #    ustr=desc.encode('utf-8').decode('utf-8')
 #    print(ustr)
-    jsdict={'SiteName':js['name'],'Description':js['siteDescription'],'GlobalRank':js['globalRank'],'Title':js['name'],'Category':js['Category'],'CountryRank':js['countryRank']['rank']}
+    jsdict={'SiteName':js['name'],'Description':js['siteDescription'],'GlobalRank':js['globalRank'],'Title':js['name'],'Category':js['categoryRank']['taxonomy'],'CountryRank':js['countryRank']['rank']}
     return JSONResponse(content=jsdict)