Your Name il y a 3 ans
Parent
commit
282446df83
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 4 0
      similar_web/ads.yaml
  2. 3 2
      similar_web/main.py

+ 4 - 0
similar_web/ads.yaml

@@ -0,0 +1,4 @@
+developer_token: r5E0GJucTQnF0041aP9ATg
+client_id: 872916460819-3ej7nnrsi339pnj9jlbldqboiaekhqun.apps.googleusercontent.com
+client_secret: 0a4wEsmm35arktkCEkSxR5Dn
+refresh_token: 1//0e1EdU_ecHOBUCgYIARAAGA4SNwF-L9IrmHNt9mbe6u_zxZp0c0_RzFj2Je0uYbKW6HVojM8Yf8lyB9SgQrv33B-yjDXMZsAHsw8

+ 3 - 2
similar_web/main.py

@@ -12,11 +12,12 @@ from fastapi.responses import JSONResponse, FileResponse
 from fastapi.middleware.cors import CORSMiddleware
 from pydantic import BaseModel
 #from googlesearch import search
-import kw_planner
 import asyncio
 import time
 from google.ads.googleads.client import GoogleAdsClient
-
+sys.path.append('.')
+import kw_planner
+ 
 fake_rank_plus = 700
 fake_traffic_weighted = 1.3