Skip to content

Instantly share code, notes, and snippets.

View misirov's full-sized avatar
🎯
Focusing

P. Misirov misirov

🎯
Focusing
  • Right here
View GitHub Profile
@misirov
misirov / a_upload_to_gdrive.py
Last active January 2, 2025 16:44
upload files to gdrive with python
"""Google Drive File Upload Utility
Required auth files:
- credentials.json: OAuth 2.0 Client credentials from Google Cloud Console
• Go to Google Cloud Console (https://console.cloud.google.com)
• Create a new project or select existing
• Enable Google Drive API
• Configure OAuth consent screen
• Go to Credentials → Create Credentials → OAuth Client ID
• Select "Web Application"
@misirov
misirov / EtherscanLabelScraping.py
Created October 11, 2023 17:05
EtherscanLabelScraping
user_agents = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.30