Added sample code
This commit is contained in:
parent
b99f5b66f3
commit
db5c5d0009
21
main.py
Normal file
21
main.py
Normal 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
0
requirements.txt
Normal file
Loading…
Reference in New Issue
Block a user