Skip to content

Instantly share code, notes, and snippets.

View Isopach's full-sized avatar
:octocat:
Working from home forever!

Isopach Isopach

:octocat:
Working from home forever!
View GitHub Profile
@Isopach
Isopach / diff.py
Created November 19, 2023 23:02
Check Instagram Follows who don't follow back
#!/usr/bin/env python3
"""
1. Go to https://accountscenter.instagram.com/info_and_permissions/dyi/
2. Select 'Request Download'
3. Select Followers & Following
4. Select 'All time' (default is 'Last Year')
5. Select 'Json' (default is 'HTML')
6. Download the data
7. Unzip and put this file into the same directory
@Isopach
Isopach / search_google.py
Created December 15, 2021 01:58
Search Google and get summary
# Adapted from googlesearch-python
def findTerm():
q = ['term1', 'term2', 'etc']
d = open("google_results.txt","w",encoding='utf-8')
for query in q:
res = search(query, num_results=1, lang="ja")
print(res[0])
d.write(res[0])
@Isopach
Isopach / check_block.py
Created November 12, 2021 01:50
LINEでブロックされたか確認する
# 1. Get a JSON list of your friends from GET /api/present/friends
# サンプルデータ: [{"imageUrl":"https://profile.line-scdn.net/サンプル/large","name":"サンプル","midCrypted":"aVSDサンプル=="},{"imageUrl":"https://profile.line-scdn.net/サンプル2/large","name":"サンプル2",...省略...}]
# 2. Copy header and cookies from GET /api/present/friends/
import json, requests, urllib3, time, sys
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
f = open("linefriends_mid.txt", "r", encoding="utf-8")
d = json.loads(f.read())
@Isopach
Isopach / get_tweets.py
Last active October 22, 2021 09:10
Get latest 3200 tweets of a user using tweepy
import tweepy
import sys
import os
cwd = os.getcwd()
this_dir = cwd + '/'
consumer_key ="redacted"
consumer_secret ="redacted"
access_token="redacted"
@Isopach
Isopach / proxy.bat
Created July 7, 2021 08:15
Change proxy settings fast (Win 10)
start ms-settings:network-proxy
@Isopach
Isopach / discord-search.py
Last active October 6, 2021 05:26
Find keyword across all your discord servers in the past day
import requests, json, sys
from datetime import date, timedelta
def findWord():
servers = getServers()
keyword = sys.argv[1]
for i in range(0,len(servers)):
url = "https://discord.com:443/api/v8/guilds/"+str(servers[i])+"/messages/search?content="+keyword
headers = {"Authorization": "redacted"}
@Isopach
Isopach / reset_network.bat
Created March 4, 2021 09:18
Reset my network whenever ERR_CONNECTION_RESET occurs
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
@Isopach
Isopach / visit_astats.py
Created February 7, 2021 02:48
astats-xp-bot to visit your profile and get 15+ experience every day
#!/usr/bin/python3
import requests
import time
import random
proxies = {"http":"protocol://user:pass@ip:port"} # Requires requests[socks] if using SOCKS5
steam64 = ""
for i in range(0,10): # 10 consecutive days
profile = "http://astats.astats.nl:80/astats/User_Info.php?SteamID64=" + steam64
@Isopach
Isopach / InsecureRequestWarning.py
Created June 29, 2020 15:05
Remove annoying InsecureRequestWarning warnings
#Add these to the top of your file
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
@Isopach
Isopach / how-to.md
Created June 29, 2020 14:29
Add unix commands on Windows

Simply download MingGW and add the /bin dir to your PATH