DEV Community

loading...
Cover image for Python Scripts - Fake Data Generator

Python Scripts - Fake Data Generator

envoy_ profile image Envoy-VC ・1 min read

Note - No API Key is required for the data ,data is open source

import requests
import json

url = 'https://api.namefake.com/'

response = requests.get(url)
json_data = json.loads(response.text)

for i in json_data:
    print(i+ ' : ' + str(json_data[i]))
Enter fullscreen mode Exit fullscreen mode

Discussion (3)

Collapse
atluslux profile image
Johnny Outlaw

Forgive my newbie question, would this be used in testing scenarios for learning to work with APIs or testing pentesting/security tools?

Collapse
arnabsen1729 profile image
Arnab Sen

There is a python module called faker. It is pretty powerful

Collapse
envoy_ profile image
Envoy-VC Author

ya I checked it out it is good but I does no contain many feilds like ip,mac,username ,password,body features etc. Btw thanks for suggesting

Forem Open with the Forem app