Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,6 @@ def csv_logs(mytext, result, date_time):
|
|
| 51 |
|
| 52 |
def search_internet(question):
|
| 53 |
try:
|
| 54 |
-
st.text("Key 0 used")
|
| 55 |
params = {
|
| 56 |
"q": question,
|
| 57 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -75,6 +74,7 @@ def search_internet(question):
|
|
| 75 |
search = GoogleSearch(params)
|
| 76 |
results = search.get_dict()
|
| 77 |
organic_results = results["organic_results"]
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
snippets = ""
|
|
@@ -102,7 +102,7 @@ def search_internet(question):
|
|
| 102 |
st.write(snippets)
|
| 103 |
except:
|
| 104 |
try:
|
| 105 |
-
|
| 106 |
params = {
|
| 107 |
"q": question,
|
| 108 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -126,6 +126,7 @@ def search_internet(question):
|
|
| 126 |
search = GoogleSearch(params)
|
| 127 |
results = search.get_dict()
|
| 128 |
organic_results = results["organic_results"]
|
|
|
|
| 129 |
|
| 130 |
|
| 131 |
snippets = ""
|
|
@@ -153,7 +154,7 @@ def search_internet(question):
|
|
| 153 |
st.write(snippets)
|
| 154 |
except:
|
| 155 |
try:
|
| 156 |
-
|
| 157 |
params = {
|
| 158 |
"q": question,
|
| 159 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -177,6 +178,7 @@ def search_internet(question):
|
|
| 177 |
search = GoogleSearch(params)
|
| 178 |
results = search.get_dict()
|
| 179 |
organic_results = results["organic_results"]
|
|
|
|
| 180 |
|
| 181 |
|
| 182 |
snippets = ""
|
|
@@ -204,7 +206,7 @@ def search_internet(question):
|
|
| 204 |
st.write(snippets)
|
| 205 |
except:
|
| 206 |
try:
|
| 207 |
-
|
| 208 |
params = {
|
| 209 |
"q": question,
|
| 210 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -228,6 +230,7 @@ def search_internet(question):
|
|
| 228 |
search = GoogleSearch(params)
|
| 229 |
results = search.get_dict()
|
| 230 |
organic_results = results["organic_results"]
|
|
|
|
| 231 |
|
| 232 |
|
| 233 |
snippets = ""
|
|
@@ -255,7 +258,7 @@ def search_internet(question):
|
|
| 255 |
st.write(snippets)
|
| 256 |
except:
|
| 257 |
try:
|
| 258 |
-
|
| 259 |
params = {
|
| 260 |
"q": question,
|
| 261 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -279,6 +282,7 @@ def search_internet(question):
|
|
| 279 |
search = GoogleSearch(params)
|
| 280 |
results = search.get_dict()
|
| 281 |
organic_results = results["organic_results"]
|
|
|
|
| 282 |
|
| 283 |
|
| 284 |
snippets = ""
|
|
@@ -306,7 +310,7 @@ def search_internet(question):
|
|
| 306 |
st.write(snippets)
|
| 307 |
except:
|
| 308 |
try:
|
| 309 |
-
|
| 310 |
params = {
|
| 311 |
"q": question,
|
| 312 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -330,6 +334,7 @@ def search_internet(question):
|
|
| 330 |
search = GoogleSearch(params)
|
| 331 |
results = search.get_dict()
|
| 332 |
organic_results = results["organic_results"]
|
|
|
|
| 333 |
|
| 334 |
|
| 335 |
snippets = ""
|
|
@@ -357,7 +362,7 @@ def search_internet(question):
|
|
| 357 |
st.write(snippets)
|
| 358 |
except:
|
| 359 |
try:
|
| 360 |
-
|
| 361 |
params = {
|
| 362 |
"q": question,
|
| 363 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -381,6 +386,7 @@ def search_internet(question):
|
|
| 381 |
search = GoogleSearch(params)
|
| 382 |
results = search.get_dict()
|
| 383 |
organic_results = results["organic_results"]
|
|
|
|
| 384 |
|
| 385 |
|
| 386 |
snippets = ""
|
|
@@ -408,7 +414,7 @@ def search_internet(question):
|
|
| 408 |
st.write(snippets)
|
| 409 |
except:
|
| 410 |
try:
|
| 411 |
-
|
| 412 |
params = {
|
| 413 |
"q": question,
|
| 414 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -432,6 +438,7 @@ def search_internet(question):
|
|
| 432 |
search = GoogleSearch(params)
|
| 433 |
results = search.get_dict()
|
| 434 |
organic_results = results["organic_results"]
|
|
|
|
| 435 |
|
| 436 |
|
| 437 |
snippets = ""
|
|
@@ -459,7 +466,7 @@ def search_internet(question):
|
|
| 459 |
st.write(snippets)
|
| 460 |
except:
|
| 461 |
try:
|
| 462 |
-
|
| 463 |
params = {
|
| 464 |
"q": question,
|
| 465 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -483,6 +490,7 @@ def search_internet(question):
|
|
| 483 |
search = GoogleSearch(params)
|
| 484 |
results = search.get_dict()
|
| 485 |
organic_results = results["organic_results"]
|
|
|
|
| 486 |
|
| 487 |
|
| 488 |
snippets = ""
|
|
@@ -510,7 +518,7 @@ def search_internet(question):
|
|
| 510 |
st.write(snippets)
|
| 511 |
except:
|
| 512 |
try:
|
| 513 |
-
|
| 514 |
params = {
|
| 515 |
"q": question,
|
| 516 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -534,6 +542,7 @@ def search_internet(question):
|
|
| 534 |
search = GoogleSearch(params)
|
| 535 |
results = search.get_dict()
|
| 536 |
organic_results = results["organic_results"]
|
|
|
|
| 537 |
|
| 538 |
|
| 539 |
snippets = ""
|
|
@@ -561,7 +570,7 @@ def search_internet(question):
|
|
| 561 |
st.write(snippets)
|
| 562 |
except:
|
| 563 |
try:
|
| 564 |
-
|
| 565 |
params = {
|
| 566 |
"q": question,
|
| 567 |
"location": "Bengaluru, Karnataka, India",
|
|
@@ -585,6 +594,7 @@ def search_internet(question):
|
|
| 585 |
search = GoogleSearch(params)
|
| 586 |
results = search.get_dict()
|
| 587 |
organic_results = results["organic_results"]
|
|
|
|
| 588 |
|
| 589 |
|
| 590 |
snippets = ""
|
|
|
|
| 51 |
|
| 52 |
def search_internet(question):
|
| 53 |
try:
|
|
|
|
| 54 |
params = {
|
| 55 |
"q": question,
|
| 56 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 74 |
search = GoogleSearch(params)
|
| 75 |
results = search.get_dict()
|
| 76 |
organic_results = results["organic_results"]
|
| 77 |
+
st.text("Key 0 used")
|
| 78 |
|
| 79 |
|
| 80 |
snippets = ""
|
|
|
|
| 102 |
st.write(snippets)
|
| 103 |
except:
|
| 104 |
try:
|
| 105 |
+
|
| 106 |
params = {
|
| 107 |
"q": question,
|
| 108 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 126 |
search = GoogleSearch(params)
|
| 127 |
results = search.get_dict()
|
| 128 |
organic_results = results["organic_results"]
|
| 129 |
+
st.text("Key 1 used")
|
| 130 |
|
| 131 |
|
| 132 |
snippets = ""
|
|
|
|
| 154 |
st.write(snippets)
|
| 155 |
except:
|
| 156 |
try:
|
| 157 |
+
|
| 158 |
params = {
|
| 159 |
"q": question,
|
| 160 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 178 |
search = GoogleSearch(params)
|
| 179 |
results = search.get_dict()
|
| 180 |
organic_results = results["organic_results"]
|
| 181 |
+
st.text("Key 2 used")
|
| 182 |
|
| 183 |
|
| 184 |
snippets = ""
|
|
|
|
| 206 |
st.write(snippets)
|
| 207 |
except:
|
| 208 |
try:
|
| 209 |
+
|
| 210 |
params = {
|
| 211 |
"q": question,
|
| 212 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 230 |
search = GoogleSearch(params)
|
| 231 |
results = search.get_dict()
|
| 232 |
organic_results = results["organic_results"]
|
| 233 |
+
st.text("Key 3 used")
|
| 234 |
|
| 235 |
|
| 236 |
snippets = ""
|
|
|
|
| 258 |
st.write(snippets)
|
| 259 |
except:
|
| 260 |
try:
|
| 261 |
+
|
| 262 |
params = {
|
| 263 |
"q": question,
|
| 264 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 282 |
search = GoogleSearch(params)
|
| 283 |
results = search.get_dict()
|
| 284 |
organic_results = results["organic_results"]
|
| 285 |
+
st.text("Key 4 used")
|
| 286 |
|
| 287 |
|
| 288 |
snippets = ""
|
|
|
|
| 310 |
st.write(snippets)
|
| 311 |
except:
|
| 312 |
try:
|
| 313 |
+
|
| 314 |
params = {
|
| 315 |
"q": question,
|
| 316 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 334 |
search = GoogleSearch(params)
|
| 335 |
results = search.get_dict()
|
| 336 |
organic_results = results["organic_results"]
|
| 337 |
+
st.text("Key 5 used")
|
| 338 |
|
| 339 |
|
| 340 |
snippets = ""
|
|
|
|
| 362 |
st.write(snippets)
|
| 363 |
except:
|
| 364 |
try:
|
| 365 |
+
|
| 366 |
params = {
|
| 367 |
"q": question,
|
| 368 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 386 |
search = GoogleSearch(params)
|
| 387 |
results = search.get_dict()
|
| 388 |
organic_results = results["organic_results"]
|
| 389 |
+
st.text("Key 6 used")
|
| 390 |
|
| 391 |
|
| 392 |
snippets = ""
|
|
|
|
| 414 |
st.write(snippets)
|
| 415 |
except:
|
| 416 |
try:
|
| 417 |
+
|
| 418 |
params = {
|
| 419 |
"q": question,
|
| 420 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 438 |
search = GoogleSearch(params)
|
| 439 |
results = search.get_dict()
|
| 440 |
organic_results = results["organic_results"]
|
| 441 |
+
st.text("Key 7 used")
|
| 442 |
|
| 443 |
|
| 444 |
snippets = ""
|
|
|
|
| 466 |
st.write(snippets)
|
| 467 |
except:
|
| 468 |
try:
|
| 469 |
+
|
| 470 |
params = {
|
| 471 |
"q": question,
|
| 472 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 490 |
search = GoogleSearch(params)
|
| 491 |
results = search.get_dict()
|
| 492 |
organic_results = results["organic_results"]
|
| 493 |
+
st.text("Key 8 used")
|
| 494 |
|
| 495 |
|
| 496 |
snippets = ""
|
|
|
|
| 518 |
st.write(snippets)
|
| 519 |
except:
|
| 520 |
try:
|
| 521 |
+
|
| 522 |
params = {
|
| 523 |
"q": question,
|
| 524 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 542 |
search = GoogleSearch(params)
|
| 543 |
results = search.get_dict()
|
| 544 |
organic_results = results["organic_results"]
|
| 545 |
+
st.text("Key 9 used")
|
| 546 |
|
| 547 |
|
| 548 |
snippets = ""
|
|
|
|
| 570 |
st.write(snippets)
|
| 571 |
except:
|
| 572 |
try:
|
| 573 |
+
|
| 574 |
params = {
|
| 575 |
"q": question,
|
| 576 |
"location": "Bengaluru, Karnataka, India",
|
|
|
|
| 594 |
search = GoogleSearch(params)
|
| 595 |
results = search.get_dict()
|
| 596 |
organic_results = results["organic_results"]
|
| 597 |
+
st.text("Key 10 used")
|
| 598 |
|
| 599 |
|
| 600 |
snippets = ""
|