cgoldberg / sauceclient

Python client library for Sauce Labs API
Apache License 2.0
11 stars 25 forks source link

Ability to download asset objects #23

Open enriquegh opened 5 years ago

enriquegh commented 5 years ago

Hello! Wanted to run something by the maintainers before doing any work on this. Currently, there are the get_job_assets and get_job_asset_url methods that get a list of available assets and get you the correct asset URL respectively. There is, however, no way to actually download the file (screenshot, log file, har file, etc) to your machine.

This is something that could be done pretty easily. It would involve either refactoring the request method or creating a separate request method for this since we would get the content itself and save it.

Is this something that would be welcome as a PR?

cgoldberg commented 5 years ago

go for it