24 lines
493 B
Python
24 lines
493 B
Python
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()
|