|
@@ -43,7 +43,8 @@ async def read_item(domain_name):
|
|
|
#domain_name
|
|
|
jsdata=conn.root.get_url('https://data.similarweb.com/api/v1/data?domain='+domain_name)
|
|
|
print(jsdata)
|
|
|
- jsdict=str(jsdata)[1:-1]
|
|
|
+# jsdict=str(jsdata)[1:-1]
|
|
|
+ jsdict=str(jsdata)
|
|
|
table=db['similar']
|
|
|
table.insert({'domain_name':domain_name,'json':jsdict,'dt':datetime.datetime.now()})
|
|
|
db.commit()
|