passivetotal / python_api

Python abstract API for PassiveTotal services in the form of libraries and command line utilities.
http://passivetotal.readthedocs.org/en/latest/index.html
Other
85 stars 28 forks source link

[Feature request] Get all the alerts from a specific project #47

Closed r0ny123 closed 6 months ago

r0ny123 commented 2 years ago

Currently, there's no way to get all the alerts from a project. Let's take an example:

alert_poject = analyzer.Project.find('c28b3162-6cd9-4571-be56-7cb72400ffa0')
alert_project

Now if we want to get the no. of alerts and alerts associated with it, if we do something like alert.project_alerts.available and alert_poject.alerts.as_df, we get the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-127-ed778753888e> in <module>
----> 1 alert_poject.alerts.as_df

AttributeError: 'Project' object has no attribute 'alerts'

It would be better to if those get implemented.