Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion intezer_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.21.11'
__version__ = '1.21.12'
5 changes: 3 additions & 2 deletions intezer_sdk/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def from_latest_analysis(cls,
exact_match: bool = False) -> Optional['UrlAnalysis']:
"""
Returns a UrlAnalysis instance with the latest analysis of the given URL.
:param url: The URL to retrieve the latest analysis for.
Note: For more control over the query (beyond the submitted URL), use the 'query_url_analyses_history' method.
:param url: The 'submitted URL' to retrieve the latest analysis for.
:param days_threshold_for_latest_analysis: The number of days to look back for the latest analysis.
:param api: The API connection to Intezer.
:param exact_match: If True, the URL must match exactly. Otherwise, try to find similar URLs which were analyzed.
Expand All @@ -404,7 +405,7 @@ def from_latest_analysis(cls,
url = url if exact_match else _clean_url(url)
analysis_history_url_result = query_url_analyses_history(start_date=yesterday,
end_date=now,
url=url,
submitted_url=url,
aggregated_view=True,
api=api)
analyses_ids = [report['analysis_id'] for report in analysis_history_url_result.all()]
Expand Down