def __init__(self):
self.br = mechanize.Browser()
self.br.set_handle_equiv(True)
self.br.set_handle_gzip(True)
self.br.set_handle_redirect(True)
self.br.set_handle_referer(True)
self.br.set_handle_robots(False)
self.br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
self.br.addheaders =[('Connection','keep-alive'),
('Pragma','no-cache'),
('Cache-Control','no-cache'),
('Origin','http://sms.payuterus.biz'),
('Upgrade-Insecure-Requests','1'),
('Content-Type','application/x-www-form-urlencoded'),
('User-Agent','Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X Build/N2G47H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36'),
('Accept','text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3'),
('Referer','http://sms.payuterus.biz/alpha/'),
('Accept-Encoding','gzip, deflate'),
('Accept-Language','id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7'),
('Cookie','_ga=GA1.2.131924726.1560439960; PHPSESSID=jjrqqaakmfcgfgbtjt8tve5595; _gid=GA1.2.1969561921.1561024035; _gat=1')
]
self.u='http://sms.payuterus.biz/alpha/'
self.tkmain()