Update main.py
Browse files
main.py
CHANGED
|
@@ -2,13 +2,11 @@ from flask import Flask
|
|
| 2 |
import requests as r
|
| 3 |
|
| 4 |
x=r.get("https://netflix.com")
|
| 5 |
-
|
| 6 |
-
|
| 7 |
app = Flask(__name__)
|
| 8 |
|
| 9 |
@app.route('/')
|
| 10 |
def hello_world():
|
| 11 |
print(x.status_code)
|
| 12 |
-
|
| 13 |
|
| 14 |
|
|
|
|
| 2 |
import requests as r
|
| 3 |
|
| 4 |
x=r.get("https://netflix.com")
|
|
|
|
|
|
|
| 5 |
app = Flask(__name__)
|
| 6 |
|
| 7 |
@app.route('/')
|
| 8 |
def hello_world():
|
| 9 |
print(x.status_code)
|
| 10 |
+
return str(x.status_code)
|
| 11 |
|
| 12 |
|