Skip to content

Instantly share code, notes, and snippets.

View im-noob's full-sized avatar
🎯
I'm Iron man

Amritesh kumar im-noob

🎯
I'm Iron man
View GitHub Profile
@im-noob
im-noob / TwiiterTrend.py
Created August 7, 2021 06:38
Record 1st trending tweet count in every minute
import json
import os
from datetime import datetime
from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import TimeoutException
@im-noob
im-noob / turtle.py
Last active October 11, 2021 20:10
turtle Example
from turtle import *
from time import sleep
import random
bgcolor('black')
speed(0)
line_width = 2
@im-noob
im-noob / Grid Search CV.py
Last active October 16, 2021 08:02
Grid Search CV
param_grid = {
'weights' : ['uniform', 'distance'],
'algorithm' : ['auto', 'ball_tree', 'kd_tree', 'brute'],
'leaf_size' : [30, 40, 50],
'n_neighbors' : [5, 10, 15],
}
gridSearchCV = GridSearchCV(KNeighborsRegressor(),param_grid=param_grid,n_jobs=-1)
-----------------------------------------------------------------------------------------------
param_grid = {
@im-noob
im-noob / Find Best Model .py
Last active October 16, 2021 08:55
Find Best Model ML
# Liner Regression
models = {
'LinearRegression' : LinearRegression(),
'Ridge' : Ridge(alpha=1.0),
'Lasso' : Lasso(),
'DecisionTreeRegressor' : DecisionTreeRegressor(),
'KNeighborsRegressor' : KNeighborsRegressor(),
'SVR' : SVR(),
@im-noob
im-noob / Downlaod Viemo Video.js
Created December 19, 2021 17:13
Downlaod Viemo Video.js
/*
Steps to download
1. Open the console
2. Select vimeo-player iframe
3. paste the code enjoy :)
*/
@im-noob
im-noob / ChangeWhatsappBackground.js
Created January 9, 2022 07:37
Change Whatsapp Background.js
let interval = setInterval(function(){
if(document.getElementsByClassName('_1PzAL').length != 0){
document.getElementsByClassName('_1PzAL')[0].style.backgroundImage = 'url("https://source.unsplash.com/random/952x512?sig=1")';
document.getElementsByClassName('_1PzAL')[0].style.opacity = '1';
//clearInterval(interval)
}
},1000);
@im-noob
im-noob / Remove string data from nested list and also print index before printing.py
Created September 22, 2022 05:06
Remove string data from nested list and also print index before printing
# Remove string data from nested list and also print index before printing
lst=[
[1,2,3],
[11,12,'a','b','C','D', 4],
[21,'t',23],
[4,5,6,['raja','baja', 'saja', 4444]],
[7,87,9],
'demo',
12.5
@im-noob
im-noob / millions Request with payload.py
Created December 2, 2022 17:46
millions or request with payload and headers with python request and httio
'''
Reuire More than 12 GB ram to process all the request..
!pip install nest-asyncio
'''
import asyncio
from aiohttp import ClientSession
import nest_asyncio
nest_asyncio.apply()
@im-noob
im-noob / Amazon Best Seller Page filter.js
Last active March 15, 2023 18:55
Amazon Best Seller Page filter for temper monkey
// ==UserScript==
// @name Filter Amazon
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.amazon.in/gp/bestsellers/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.in
// @grant none
// ==/UserScript==
@im-noob
im-noob / Domain Name Check in python.py
Created April 25, 2023 19:33
Domain Name Check in python
!pip install python-whois
import whois
final_list = set()
def check_domain(name):
try:
data = whois.whois(name)