Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,11 @@ from time import time as t
|
|
10 |
import os
|
11 |
|
12 |
os.system("pip install webscout")
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
app = Flask(__name__)
|
15 |
|
|
|
10 |
import os
|
11 |
|
12 |
os.system("pip install webscout")
|
13 |
+
from webscout import DDGS
|
14 |
+
|
15 |
+
with DDGS() as ddgs:
|
16 |
+
results = [r for r in ddgs.text("python programming", max_results=500)]
|
17 |
+
print(results)
|
18 |
|
19 |
app = Flask(__name__)
|
20 |
|