This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function idiotFunction() { | |
console.log("You are stupid") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
OlderNewer