Skip to content

Instantly share code, notes, and snippets.

View StickmanNinja's full-sized avatar
🌴
On vacation

STICKMAN NINJA StickmanNinja

🌴
On vacation
  • Little Rock, Arkansas
View GitHub Profile
@StickmanNinja
StickmanNinja / Example.py
Created August 30, 2018 02:50
Selenium Python App On Linux
# Run these commands on your linux computer.
#apt-get update
#apt-get install firefox
#pip3 install selenium==3.0.2
#wget https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz -O /tmp/geckodriver.tar.gz && tar -C /opt -xzf /tmp/geckodriver.tar.gz && chmod 755 /opt/geckodriver && ln -fs /opt/geckodriver /usr/bin/geckodriver && ln -fs /opt/geckodriver /usr/local/bin/geckodriver
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://google.com')
print driver.title
@StickmanNinja
StickmanNinja / FindTedCruzPoll.py
Created September 6, 2018 21:23
A simple little Python notification system that looks for Ted Cruz polling data on Google. If the data exists, then the script notifies me via text message
from bs4 import BeautifulSoup
from six.moves import urllib
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import requests
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
@StickmanNinja
StickmanNinja / ListFilter.py
Created April 7, 2020 13:15
A simple script to sort emails in a list.
with open('emaillist.txt') as f:
lines = f.readlines()
yahoo = 0
hotmail = 0
google = 0
for email in lines:
if "gmail" not in email and "aol" not in email and "GMAIL" not in email and "AOL" not in email and "hotmail" not in email:
print(email)
if "yahoo" in email:
yahoo = yahoo + 1
@StickmanNinja
StickmanNinja / Filter Emails By ISP.py
Last active April 13, 2020 14:12
A simple tool I use to sort emails by ISP.
import re
import json
gmail = 0
yahoo = 0
comcast = 0
with open('newsegment.csv') as f:
lines = f.readlines()
isps = {}
for email in lines:
email = email.lower()
function idiotFunction() {
console.log("You are stupid")
}
@StickmanNinja
StickmanNinja / Index.py
Created July 4, 2021 23:06
Python Example Of Project
import requests
r = requests.get('https://matrix.adapex.io/api/kffb/siteplacementdate?token=***********************').json()
# DATE - Total Impressions - Paid Impressions - Fill - Revenue - CPM
#Date must be in YEAR-MONTH-DAY format. Only 2 digits for month and day.
#EXAMPLE: 2021-06-15
def GetInfo(givendate, givenwebsite):
newdata = []
@StickmanNinja
StickmanNinja / ads.txt
Created October 19, 2021 03:37
Use this.
#banner
#33across
adapex.io, s931, DIRECT
33across.com, 0010b00002PIxPJAA1, DIRECT, bbea06d9c4d2853c #33Across #hb #tag
appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 #33Across #hb #tag #viewable
yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 #33Across #hb #tag
rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 #33Across #hb #tag
openx.com, 537120563, RESELLER, 6a698e2ec38604c6 #33Across #hb #tag
indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc #33Across #hb #tag #viewable
rubiconproject.com, 21642, RESELLER, 0bfd66d529a55807 #33Across #hb #tag #viewable
@StickmanNinja
StickmanNinja / ads.txt
Last active August 17, 2022 22:51
Ad this file to the route of the website.
#banner
#33across
33across.com, 0010b00002PIxPJAA1, DIRECT, bbea06d9c4d2853c #33Across #hb #tag
conversantmedia.com, 100141, DIRECT #33Across #hb #tag
appnexus.com, 10239, RESELLER, f5ab79cb980f11d1 #33Across #hb #tag #viewable
yahoo.com, 57289, RESELLER, e1a5b5b6e3255540 #33Across #hb #tag
rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807 #33Across #hb #tag
openx.com, 537120563, RESELLER, 6a698e2ec38604c6 #33Across #hb #tag
indexexchange.com, 191973, RESELLER, 50b1c356f2c5c8fc #33Across #hb #tag #viewable
rubiconproject.com, 21642, RESELLER, 0bfd66d529a55807 #33Across #hb #tag #viewable