Skip to content
Snippets Groups Projects
Verified Commit ba382a6e authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fill photo field with random photo. Advances #105.

parent 1ac5c4cd
No related branches found
No related tags found
No related merge requests found
import re
from urllib import urlopen
from hattori.base import BaseAnonymizer, faker
......@@ -21,5 +21,5 @@ class PersonAnonymizer(BaseAnonymizer):
('mobile_number', ''),
('email', faker.email),
('date_of_birth', lambda **kwargs: faker.date_of_birth(minimum_age=8, maximum_age=66, **kwargs)),
('photo', '')
('photo', lamda **kwargs: urlopen('https://thispersondoesnotexist.com/image').read())
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment