first commit
This commit is contained in:
23
app.py
Normal file
23
app.py
Normal 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()
|
||||
Reference in New Issue
Block a user