-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunwrtn_flexi_ur.py
19 lines (17 loc) · 2.77 KB
/
unwrtn_flexi_ur.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python2.7
from itertools import izip
import csv
import os.path
html = ''
csvfile = open('flexi.csv', 'rb')
reader = csv.reader(csvfile)
headers = None
for row in reader:
if reader.line_num == 1:
headers = row
else:
crow = dict(zip(headers, row))
html = html + 'folder.createFile(\''+crow['Const']+'\',\'<!DOCTYPE html><head> flexi TV-R [sign-in] '+crow['Const']+'</head><meta http-equiv="refresh" content="0;URL=https://www.google.com/accounts/AccountChooser?Email='+crow['URL']+'&continue=https://docs.google.com/a/unwr.tn/document/d/e/2PACX-1vTCahFYjxwjW1PKQdC7W41ia6Zz7H8jEOqFB8SYYSGz0PM8gnwu0npjbm6AdWn1cqy4G9wmApUa0qde/pub"><img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBkZWZhdWx0IHF1YWxpdHkK/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgAUABQAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8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