# Path: theHarvester/parsers/intelxparser.py
# class Parser:
#     def __init__(self):
#     async def parse_dictionaries(self, results: dict) -> tuple:


from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import intelxparser
import asyncio
import json
import requests


class SearchIntelx:

    def __init__(self, word):
        self.word = word
        self.key = Core.intelx_key()
        if self.key is None:
            raise MissingKey('Intelx')
        self.database = 'https://2.intelx.io'
        self.results = None
        self.info = ()
        self.limit = 10000
        self.proxy = False
        self.offset = -1

    async def do_search(self):
        try:
            # Based on: https://github.com/IntelligenceX/SDK/blob/master/Python/intelxapi.py
            # API requests self identification
            # https://intelx.io/integrations
            headers = {'x-key': self.key, 'User-Agent': f'{Core.get_user_agent()}-theHarvester'}

# Path: theHarvester/parsers/intelxparser.py
# class Parser:
#     def __init__(self):
#     async def parse_dictionaries(self, results: dict) -> tuple:


# Path: theHarvester/discovery/intelxsearch.py
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
from theHarvester.parsers import intelxparser
import asyncio
import json
import requests



class SearchIntelx:

    def __init__(self, word):
        self.word = word
        self.key = Core.intelx_key()
        if self.key is None:
            raise MissingKey('Intelx')
        self.database = 'https://2.intelx.io'
        self.results = None
        self.info = ()
        self.limit = 10000
        self.proxy = False
        self.offset = -1

    async def do_search(self):
        try:
            # Based on: https://github.com/IntelligenceX/SDK/blob/master/Python/intelxapi.py
            # API requests self identification
            # https://intelx.io/integrations
            headers = {'x-key': self.key, 'User-Agent': f'{Core.get_user_agent()}-theHarvester'}

            data = {