Skip to content

target and selectortype in phonebooksearch() #575

@harinivenky

Description

@harinivenky

I would like to report an issue in the phonebooksearch() function in intelxapi.py.

  1. There is no description for the values that target parameter can take in phonebooksearch(). Kindly request you to add this in the code file or in the pdf : SDK/Intelligence X API.pdf. Based on my observation,
  • target = 0 : Not sure [Point 4]
  • target = 1 : Domains
  • target = 2 : Email addresses
  • target = 3 : URL
  • target >= 4 : Invalid target value
  1. This is a sample output format for this function :
    [{'selectortype':1,'selectortypeh':'Email Address','selectorvalue':,''selectorvalueh':'}]
    [If possible, selectorvalueh key can be removed as in most of the cases I observed, the last 2 keys have the same value]

  2. The issue here is, there is no proper mapping between target value in the function's parameter and selectortype key in the function's result. Noticed that these 2 values mean the same and are properly mapped to value 3 for URL, but, for domains, target = 1 and selectortype = 2 and vice versa for Email addresses.

  3. I'm not sure how target = 0 works. I used AI to find out and got response that this will return all the 3 selectors together. But, from what I observed after some trials is that, for every query any 1 of the 3 target values [Domains, Emails, URLs] are randomly returned. Most of the times target = 2 output is returned. Kindly request you to validate this and add it to the code.

Metadata

Metadata

Assignees

Labels

PythonbugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions