Skip to content

Instantly share code, notes, and snippets.

View Ashutoshkumargautam's full-sized avatar
:electron:
Programming....

Ashutosh kumar gautam Ashutoshkumargautam

:electron:
Programming....
View GitHub Profile
@Ashutoshkumargautam
Ashutoshkumargautam / gist:b631bf5d010baad167153b11f49e5c5b
Created November 25, 2023 13:07
This is Code install python but one click
@echo off
set PYTHON_URL=https://www.python.org/ftp/python/3.9.7/python-3.9.7-amd64.exe
rem Step 1: Download Python installer
echo Downloading Python installer...
curl -L -o python_installer.exe %PYTHON_URL%
rem Step 2: Install Python
echo Installing Python...
python_installer.exe /quiet /passive
import imaplib, email
import time
import sys
#=========================================
user = 'xyzxxxaxbxzx123@gmail.com'
password = 'xxx@123456'
imap_url = 'imap.gmail.com'
#==========================================
#=============[Reading email here..]===============================>>
mail = imaplib.IMAP4_SSL(imap_url, 993)
@Ashutoshkumargautam
Ashutoshkumargautam / main.py
Created December 2, 2020 10:20
Reading email in loop with python
import imaplib, email
import time
import sys
#=========================================
user = 'xyzxxxaxbxzx123@gmail.com'
password = 'xxx@123456'
imap_url = 'imap.gmail.com'
#==========================================
#=============[Reading email here..]===============================>>
mail = imaplib.IMAP4_SSL(imap_url, 993)
#!/usr/bin/env python2
from time import sleep
from selenium import webdriver
driver = webdriver.Firefox(executable_path="C:\Program Files (x86)\geckodriver.exe")
driver.get('https://www.google.com');
sleep(5)
driver.get('https://dhritinet.com/');
sleep(5)
driver.get('https://www.airtel.in/');
from selenium import webdriver
def loginBOT(usr, pas):
br = webdriver.Firefox()
br.get("https://web.facebook.com/")
user = br.find_element_by_css_selector("#email")
user.clear()
user.send_keys(usr)
passwd = br.find_element_by_css_selector("#pass")
#!/usr/bin/env python
print("Hello world")
<?php
//This is simple program in php programming language.
echo "Hello world"; // this is message display on the screen.
?>
public class hello{
public static (String[] args)
System.out.println("Hello world");
}