This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import csv | |
from bs4 import BeautifulSoup | |
# Read the keywords from a file | |
with open("keywords.txt", "r") as file: | |
keywords = file.read().splitlines() | |
# Define the User-Agent header | |
headers = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
from uuid import uuid4 | |
import pickle | |
import time | |
from hands.ip_wait_change import ip_change_wait | |
import json | |
from termcolor import colored | |
from pygments import highlight | |
from pygments.formatters.terminal import TerminalFormatter | |
from pygments.lexers.web import JsonLexer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pygments import highlight | |
from pygments.formatters.terminal import TerminalFormatter | |
from pygments.lexers.web import JsonLexer | |
dict = {'123':{'cats':6,'dogs':0}} | |
raw_json = json.dumps(dict , indent=4) | |
colorful_json = highlight( | |
raw_json, | |
lexer=JsonLexer(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/ycaty | |
import json | |
from uuid import uuid4 | |
import socket | |
import time | |
HOST = "127.0.0.1" | |
PORT = 65432 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you're unable to view "users must enter a username and password to use this computer" | |
after running "netplwiz" from run dialog. | |
1) | |
# RUN THIS ADMIN POWERSHELL | |
New-ItemProperty -Path “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device” -Name DevicePasswordLessBuildVersion -Value 0 -Type Dword –Force | |
2) | |
# NEXT OPEN RUN DIALOG AND ENTER.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import random | |
username = 'your_username_here' | |
password = 'your_password_here' | |
def default_headers(): | |
return { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instagram scraping user tags 2020 | |
Brief demonstration on how to scrape and collect user tags without needing login information. | |
A lot of data end points such as "viewing followers" is blocked by public users(not logged in). | |
This is a way to bypass one of these endpoints. | |
Scrape user tags (same as the url) -> instagram.com/username/tagged | |
https://www.instagram.com/graphql/query/?query_hash=31fe64d9463cbbe58319dced405c6206&variables={"id":"29883180","first":12} | |
Url Breakdown |