Skip to content

Instantly share code, notes, and snippets.

View rash0's full-sized avatar
🤿
Drowning

rash0

🤿
Drowning
  • Cairo
  • 23:18 (UTC +03:00)
View GitHub Profile
@rash0
rash0 / puppeteer_twitterLogin.js
Last active June 4, 2024 22:24
Automate login to twitter with Puppeteer
const puppeteer = require("puppeteer");
const user_email = "email@example.com";
const user_handle = "@example"; //either your handle or phone number
const password = "theEndisNear";
async function fkTwitter() {
const browser = await puppeteer.launch({
headless: false,
});
@rash0
rash0 / bye_twitter.py
Created March 18, 2019 08:50
Automat logging and tweeting to twitter using python
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
MY_SCREEN_NAME = 'your email or username'
tweet = 'your tweet string'
# It is more secure to read your password from a file using `open("mypassword.txt").read().strip()` instead