Learn R Programming

virustotal (version 0.7.1)

download_file: Download a file from VirusTotal

Description

Download a file from VirusTotal

Usage

download_file(hash = NULL, output_path = NULL, ...)

Value

Raw file content or saves file to specified path

Arguments

hash

File hash (MD5, SHA1, or SHA256)

output_path

Local path to save the downloaded file. Optional.

...

Ignored. Configure requests with the package options instead (see virustotal).

References

https://docs.virustotal.com/reference

See Also

set_key for setting the API key

Examples

Run this code
if (FALSE) {

# Before calling the function, set the API key using set_key('api_key_here')

download_file(
  hash = '99017f6eebbac24f351415dd410d522d',
  output_path = '/tmp/downloaded_file'
)
}

Run the code above in your browser using DataLab