first commit

This commit is contained in:
Zhaolong
2022-01-24 18:47:20 +08:00
commit 1c24034d59
4 changed files with 192 additions and 0 deletions

23
app.py Normal file
View File

@@ -0,0 +1,23 @@
from flask import Flask
from faker import Faker
import requests
app = Flask(__name__)
@app.route('/')
def hello_world(): # put application's code here
return 'Hello World!'
@app.route("/faker")
def faker_data():
faker = Faker(["zh_CN"])
result = ""
for i in range(1):
identification = faker.ssn()
resp = requests.get("https://shenfenzheng.bmcx.com/" + identification + "__shenfenzheng/")
print(resp.text)
if __name__ == '__main__':
app.run()