You can import socialscan into your Python projects to perform concurrent checks.
Use sync_execute_queries for a synchronous wrapper or execute_queries for an asynchronous implementation. Both take a list of queries and optional lists of platforms and proxies, returning results in the same order as the input queries.
To specify platforms, use the Platforms enum from socialscan.util.
from socialscan.util import Platforms, sync_execute_queries
queries = ["username1", "email2@gmail.com", "mail42@me.com"]
platforms = [Platforms.GITHUB, Platforms.LASTFM]
results = sync_execute_queries(queries, platforms)
for result in results:
print(f"{result.query} on {result.platform}: {result.message} (Success: {result.success}, Valid: {result.valid}, Available: {result.available})")