Skip to content

Instantly share code, notes, and snippets.

View RohanArora13's full-sized avatar
🎯
Focusing

Rohan Arora RohanArora13

🎯
Focusing
View GitHub Profile
@RohanArora13
RohanArora13 / steam_user_checker.py
Created June 21, 2022 18:38
Python code to check if a steam user exsist with a specific username
import requests
from bs4 import BeautifulSoup
def check(username):
URL = "https://steamcommunity.com/id/"+username
page = requests.get(URL)
soup = BeautifulSoup(page.text, "lxml")
@RohanArora13
RohanArora13 / SeleniumFreeProxy.py
Last active June 30, 2022 16:09
A simple way to get working proxy in selenium
from selenium import webdriver
from selenium_utilities import getChromeDriver
import time
from selenium.webdriver.common.keys import Keys
options = webdriver.ChromeOptions()
options.add_argument('--lang=en-US')
url_to_search = "https://google.com/?hl=en&lr=lang_en"
@RohanArora13
RohanArora13 / log_code_editor.py
Last active June 28, 2025 19:18
This Python script recursively scans for .py files, identifies duplicate log codes, replaces them with unique ones, and inserts missing 4-digit codes into log statements. It respects .gitignore, tracks used codes, and provides a progress bar.
import collections
import glob
import os
import random
import re
import sys
import time
import fnmatch
from typing import Dict, List, Set, Tuple