siddhartharya
commited on
Commit
•
9a87223
1
Parent(s):
afb9ec0
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,9 @@ class AutonomousEmailAgent:
|
|
97 |
|
98 |
# Fetch company URL using SERP API
|
99 |
def fetch_company_url(self):
|
|
|
100 |
print(f"Fetching company URL for {self.company_name} using SERP API...")
|
|
|
101 |
serp_url = f"https://serpapi.com/search.json?q={self.company_name}&api_key={serp_api_key}&num=1"
|
102 |
response = requests.get(serp_url)
|
103 |
|
|
|
97 |
|
98 |
# Fetch company URL using SERP API
|
99 |
def fetch_company_url(self):
|
100 |
+
serp_api_key = os.getenv("SERP_API_KEY") # Fetch the SERP API key from the environment
|
101 |
print(f"Fetching company URL for {self.company_name} using SERP API...")
|
102 |
+
|
103 |
serp_url = f"https://serpapi.com/search.json?q={self.company_name}&api_key={serp_api_key}&num=1"
|
104 |
response = requests.get(serp_url)
|
105 |
|