# Path: theHarvester/parsers/myparser.py
# class Parser:
#     def __init__(self, results, word):
#     async def genericClean(self):
#     async def urlClean(self):
#     async def emails(self):
#     async def fileurls(self, file):
#     async def hostnames(self):
#     async def people_googleplus(self):
#     async def hostnames_all(self):
#     async def links_linkedin(self):
#     async def people_linkedin(self):
#     async def people_twitter(self):
#     async def profiles(self):
#     async def set(self):
#     async def urls(self):
#     async def unique(self) -> list:


from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import re


class SearchVirustotal:

    def __init__(self, word):
        self.word = word
        self.results = ""
        self.totalresults = ""
        self.quantity = '100'
        self.counter = 0
        self.proxy = False

    async def do_search(self):
        base_url = f'https://www.virustotal.com/ui/domains/{self.word}/subdomains?relationships=resolutions&cursor=STMwCi4%3D&limit=40'
        headers = {'User-Agent': Core.get_user_agent()}
        responses = await AsyncFetcher.fetch_all([base_url], headers=headers, proxy=self.proxy)
        self.results = responses[0]
        self.totalresults += self.results

    async def get_hostnames(self):

# Path: theHarvester/parsers/myparser.py
# class Parser:
#     def __init__(self, results, word):
#     async def genericClean(self):
#     async def urlClean(self):
#     async def emails(self):
#     async def fileurls(self, file):
#     async def hostnames(self):
#     async def people_googleplus(self):
#     async def hostnames_all(self):
#     async def links_linkedin(self):
#     async def people_linkedin(self):
#     async def people_twitter(self):
#     async def profiles(self):
#     async def set(self):
#     async def urls(self):
#     async def unique(self) -> list:


# Path: theHarvester/discovery/virustotal.py
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import re



class SearchVirustotal:

    def __init__(self, word):
        self.word = word
        self.results = ""
        self.totalresults = ""
        self.quantity = '100'
        self.counter = 0
        self.proxy = False

    async def do_search(self):
        base_url = f'https://www.virustotal.com/ui/domains/{self.word}/subdomains?relationships=resolutions&cursor=STMwCi4%3D&limit=40'
        headers = {'User-Agent': Core.get_user_agent()}
        responses = await AsyncFetcher.fetch_all([base_url], headers=headers, proxy=self.proxy)
        self.results = responses[0]
        self.totalresults += self.results

    async def get_hostnames(self):

        rawres = myparser.Parser(self.results, self.word)