Skip to content

Instantly share code, notes, and snippets.

View sighthon's full-sized avatar

Piyush sighthon

View GitHub Profile
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By
URL = "https://chartink.com/screener/manas-arora-vcp-pattern"
def open_website():
# Based on https://community.render.com/t/chromedriver-is-assuming-that-chrome-has-crashed/13237/7
@sighthon
sighthon / linkedin_accept.js
Last active November 6, 2025 11:54
LinkedIn accept script
// 6th Nov 2025 version
var load = 0;
while (load < 20) { // load more x times
console.log("Loading more...")
var buttons = document.getElementsByClassName("_987acc4a")
for (var i = 0; i < buttons.length; i++) {
if (buttons[i].innerText.includes("Load more")) {
buttons[i].click();
await new Promise(r => setTimeout(r, 5000));
break;
@sighthon
sighthon / RouterConfig.java
Created February 23, 2021 14:37
Webflux Router Config
@Configuration
public class RouterConfig {
@Bean
public RouterFunction<ServerResponse> getUsers(SampleHandlerFunction sampleHandlerFunction) {
return RouterFunctions.route(RequestPredicates.GET("/users").and(
RequestPredicates.accept(MediaType.APPLICATION_JSON)),
sampleHandlerFunction::getUsers
);
}
@sighthon
sighthon / Reliance-Script.py
Created September 8, 2020 11:05
Reliance-Script
# packages installation
# pip install pandas
# pip install selenium
# script starts
import os
from time import sleep
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksConfig version="1">
<editor>
<colour_sets>
<ACTIVE_COLOUR_SET>
<str>
<![CDATA[modnokai night shift v2]]>
</str>
</ACTIVE_COLOUR_SET>
<ACTIVE_LANG>