Python Automation

Scripts and Tricks

Virtual Environments

Always use a venv to keep dependencies isolated.

python3 -m venv myenv
source myenv/bin/activate

Requests Library

import requests
response = requests.get('https://api.github.com')
print(response.status_code)