-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
Description
I'm encountering an issue with the dnsdumpster library while attempting to perform a data lookup. The error occurs when running the following code:
from dnsdumpster.DNSDumpsterAPI import DNSDumpsterAPI
results = DNSDumpsterAPI().search('microsoft.com')
print(results)
Error Message
The generated error is as follows:
Traceback (most recent call last):
File "my_script.py", line 2, in
results = DNSDumpsterAPI().search('microsoft.com')
File "...\site-packages\dnsdumpster\DNSDumpsterAPI.py", line 72, in search
csrf_middleware = soup.findAll('input', attrs={'name': 'csrfmiddlewaretoken'})[0]['value']
IndexError: list index out of range
Observations
The issue seems related to the csrfmiddlewaretoken attribute not being found in the server's response. This might indicate a change in the HTML structure of the website the library relies on.
I tried making a direct request to the website, and it appears the HTML format may have changed.
Request
Is there an update to the library or a temporary fix for this issue?
Metadata
Metadata
Assignees
Labels
No labels