A Python script to grab some information about a PNG file located at a URL
Install Python/Set up Virtual Environment for Python 3.X and run
pip install -r requirements.txt
Then you must configure your aws credentials for boto3
to work. See Boto 3 Quickstart for more info.
There are three environment variables you can set to override defaults
Default https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
export IMAGE_URL=https://logos-download.com/wp-content/uploads/2018/07/Marvel_logo_red.png
Default header.txt
export TARGET_FILE=a-different-header.txt
Default python-png-info
export BUCKET_NAME=s3-bucket-name
Once your variables are set to your liking run python main.py
to print out the header info to your console as well as generate a text file containing the output
pip install -r requirements.txt && \
python main.py
Check your s3 bucket to see the files that were uploaded...
Write a script that will:
Display the request header in a terminal window for https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png Save the header information into a text file named header.txt Upload the linked image from step 1, header.txt file, and your script to an S3 bucket Then:
Provide a link to your S3 bucket so the files can be downloaded.
Provide instructions on how to run your script.