Python Computer Visoion — Advanced Tutorials
A comprehensive collection of production-grade automation scripts covering file systems, web scraping, browser automation, Excel/CSV processing, email, scheduling, APIs, and more.
- YOLO
- CV2
- Pillow
Example — GitHub API: Auto-create Issue:
import requests
TOKEN = "your_github_token"
REPO = "ashishbindra2/automation"
def create_issue(title, body, labels=None):
url = f"https://api.github.com/repos/{REPO}/issues"
headers = {"Authorization": f"token {TOKEN}"}
data = {"title": title, "body": body, "labels": labels or []}
r = requests.post(url, json=data, headers=headers)
print(f"Issue created: {r.json()['html_url']}")
create_issue("Bug: Script fails on Windows", "Traceback...", ["bug"])
Example — Kill process by name:
import psutil
def kill_process(name):
for proc in psutil.process_iter(["name", "pid"]):
if proc.info["name"] == name:
proc.kill()
print(f"Killed {name} (PID {proc.info['pid']})")
kill_process("chrome.exe")
Environment Variables
Create a .env file in the root:
Load in any script with:
🤝 Contributing
Pull requests are welcome! For major changes, open an issue first.
- Fork the repo
- Create your feature branch:
git checkout -b feature/new-script - Commit:
git commit -m "Add: new automation script" - Push:
git push origin feature/new-script - Open a Pull Request
Made with ❤️ by [Ashish Bindra](https://github.com/ashishbindra2) · [LinkedIn](https://in.linkedin.com/in/ashishbindra2) · [Twitter](https://twitter.com/bindra_ashish)
⭐ **Star this repo** if it helped you!