Skip to content

Commit

Permalink
🎯 Update demo that checks a list of domains.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Aug 30, 2023
1 parent 43c8748 commit 0095c77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/check_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'facebook.com': rsv.YES,
'twitter.com': rsv.YES,
'youtube.com': rsv.YES,
'medium.com': rsv.YES,

"""Stock Photos""": None,
'photoshelter.com': rsv.YES,
Expand All @@ -22,6 +23,7 @@
'gettyimages.com': rsv.YES,
'shutterstock.com': rsv.YES,
'alamy.com': rsv.YES,
'bigstockphoto.com':rsv.YES,

"""Art Platform""": None,
'artstation.com': rsv.YES,
Expand Down Expand Up @@ -62,11 +64,11 @@ def main_synchronous_from_database():
else:
print(f" {domain:24}?")

for record in res.records:
for record in res.process:
print(
"\t", "\033[92m\033[0m" if record[0] == Status.SUCCESS else "\033[91m\033[0m",
" ", "\033[92m\033[0m" if record[0] == Status.SUCCESS else "\033[91m𐄂\033[0m",
record[1].value,
dict(record[2]),
dict(record[2])
)

if res == rsv.YES:
Expand Down

0 comments on commit 0095c77

Please sign in to comment.