Skip to content

Instantly share code, notes, and snippets.

View PaulSayantan's full-sized avatar
🕶️
just coding

Sayantan Paul PaulSayantan

🕶️
just coding
View GitHub Profile
@PaulSayantan
PaulSayantan / google_scrape.py
Created August 7, 2022 20:05
Python Google Search Page Scraper
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--headless")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
@PaulSayantan
PaulSayantan / flask.py
Created September 5, 2020 09:54
Flask Tutorial templates
from flask import Flask, jsonify, request, url_for, redirect, render_template, session
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SECRET_KEY'] = '123bkh123h1v2hv31vhhy'
'''
------------------------------- :: SECTION 1:FLASK BASICS :: -------------------------------------
'''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
🌞 Morning 4 commits ██▏░░░░░░░░░░░░░░░░░░ 10.5%
🌆 Daytime 10 commits █████▌░░░░░░░░░░░░░░░ 26.3%
🌃 Evening 22 commits ████████████▏░░░░░░░░ 57.9%
🌙 Night 2 commits █░░░░░░░░░░░░░░░░░░░░ 5.3%
Java 🕓 1 hr 49 mins ████████▋░░░░░░░░░░░░ 41.4%
Markdown 🕓 1 hr 19 mins ██████▎░░░░░░░░░░░░░░ 30.2%
Ruby 🕓 1 hr 9 mins █████▌░░░░░░░░░░░░░░░ 26.3%
YAML 🕓 4 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.6%
JSON 🕓 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.3%
# # A Python program to convert speech to text
# Pakages to install:
# pip install SpeechRecognition
# pip install pipwin
# pipwin install pyaudio
import speech_recognition as sr
@PaulSayantan
PaulSayantan / Clock.java
Created June 13, 2020 11:45
Analog Clock Design in Java
/*
An analogue clock using the Graphics class in Java
*/
/*
Author: Sayantan Paul
Regd. No: 1841012233
CSE-E
*/