Added sample code

This commit is contained in:
Eljakim Herrewijnen 2020-08-28 10:34:39 +02:00
parent b99f5b66f3
commit db5c5d0009
2 changed files with 21 additions and 0 deletions

21
main.py Normal file
View File

@ -0,0 +1,21 @@
import os
import time
from urllib.request import urlopen
website = urlopen("http://www.nu.nl/").readlines()
saved = []
need_to_copy = 0
baseline = -1
for line in website:
line = line.decode("utf-8")
if("zone clearfix" in line):
baseline =
if(need_to_copy > 0):
need_to_copy = need_to_copy - 1
saved.append(line)
for line in saved:
print(line)

0
requirements.txt Normal file
View File