Skip to content

Can't scan 500 files #220

@EvilWatermelon

Description

@EvilWatermelon

Hi,

I can only scan ~100 files and then I have to switch to another network to scan additional ~100 files instead of scanning 500 files in a single network.

I always get a QuotaExceededError.

[...]
client = vt.Client(VT_API_KEY)
[...]

[...]
     try:
        if 'analysis' in locals():
            analysis_id = analysis.id
            while True:
                analysis_obj = client.get_object(f"/analyses/{analysis_id}")
                if analysis_obj.status == "completed":
                    break
                time.sleep(5)

        report = client.get_object(f"/files/{file_hash}")
        with open(report_path, "w") as f:
            json.dump(report.to_dict(), f, indent=2)
        print(f"Report saved: {report_path}")
        return True
    except Exception as e:
        print(f"!! Error during analysis: {e}")
        return False
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions