Skip to content

Instantly share code, notes, and snippets.

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
class w2g:
def __init__(self, url = "https://www.w2g.tv"):
self.url = url
#my first truly own program! made on 12-12-16 made by montarion
import os
import requests
import json
import webbrowser
from time import sleep
def tracker():
while True:
#---url for releases, in JSON---#
url = 'http://www.masterani.me/api/releases'
@montarion
montarion / kiet, deze werkt.py
Created November 11, 2016 08:17
niet dat k iets veranderd heb
import getpass, poplib
import csv
def verwijderen(anu):
outfile = open("plaatsen2.csv", "w")
outfile.close()
infile = open("gebied.csv", "r")
file = infile.readlines()
plaatsen = len(file)
infile.close()
@montarion
montarion / directions.py
Created November 10, 2016 13:23
alsjeblieft kiet
import getpass, poplib
import csv
def verwijderen(anu):
outfile = open("plaatsen2.csv", "w")
outfile.close()
infile = open("gebied.csv", "r")
file = infile.readlines()
plaatsen = len(file)
infile.close()
def email():
import poplib
#server credentials
Mailbox = poplib.POP3_SSL('pop.googlemail.com', '995')
Mailbox.user('[email protected]')
Mailbox.pass_('password')
numMessages = len(Mailbox.list()[1])
mailbestand = open('lastemail.txt', 'w')
@montarion
montarion / working server email.py
Created November 9, 2016 21:28
alle code om email te lezen van de ontvanger en te verzenden van uit de server
def email(email):
import getpass, poplib
#server credentials
Mailbox = poplib.POP3_SSL('pop.googlemail.com', '995')
Mailbox.user('[email protected]')
Mailbox.pass_('Hondenbijeenkomst')
numMessages = len(Mailbox.list()[1])
mailbestand = open('lastemail.txt', 'w')