Skip to content

Instantly share code, notes, and snippets.

View 0xdeepmehta's full-sized avatar
🤿
Solana

0xDeep 0xdeepmehta

🤿
Solana
View GitHub Profile
@0xdeepmehta
0xdeepmehta / scroll_instagram.js
Last active June 29, 2020 04:12 — forked from LoranKloeze/scroll_instagram.js
Automatic scroll of Instagram page, stop scrolling by hand...
/*
Tired of scrolling to one of the last photos on the page on Instagram? Let your
browser do the scrolling for you!
31-05-2017
(c) 2017 - Loran Kloeze - [email protected]
29-05-2020
(c) 2020 - Deep Mehta - https://github.com/Imdeepmehta
Usage
- Go to https://www.instagram.com/instagram_handle/ (change instagram_handle in i.e. taylorswift)
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
import random
import string
gmail_url = """https://accounts.google.com/signup/v2/webcreateaccount?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ltmpl=default&flowName=GlifWebSignIn&flowEntry=SignUp"""
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'd5ce1o8138kb2j',
'HOST': '*****************',
'USER': '*****************',
'PORT': '*****************',
'PASSWORD': ''
}
}
<div class="mt-20 bg-gray-900 w-full p-8 py-20 flex justify-center">
<div>
<h1 class="text-white font-bold text-2xl mb-4 text-center">Search Your 😈 Fantasy?</h1>
<span class="relative">
<input type="text" class="py-2 px-4 rounded-full bg-gray-100 text-lg text-gray-600 font-semibold focus:outline-none hover:bg-gray-200 focus:ring-4 focus:ring-white focus:ring-opacity-25 pr-36" placeholder="How to 🔪 tomato..." />
<span id="badge" class="bg-pink-600 absolute right-3 top-1/2 transform -translate-y-1/2 px-6 py-2 rounded-full font-semibold text-gray-200 cursor-pointer hover:bg-pink-500 uppercase text-sm">🔍 Search</span>
</span>
</div>
</div>