Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ayuda a tus funcionarios a hacer más eficiente su trabajo!
# -*- encoding: utf-8 -*-
# author: javi santana
import urllib2
from BeautifulSoup import BeautifulStoneSoup, BeautifulSoup
if __name__ == '__main__':
b = BeautifulStoneSoup(urllib2.urlopen(INFOJOBS_URL).read())
a_denunciar = (x for x in b.findAll('title') if '/a' not in x.string.lower())
print "*"*20 + "A DENUNCIAR" + "*"*20
for x in a_denunciar:
#print x.string,
url = x.nextSibling.nextSibling.string
if 'http' not in url:
url = 'http:' + url
c = BeautifulSoup(urllib2.urlopen(url).read()).find('td', {'class': 'logo-empresa'})
if c:
print c.find('img')['title'].split('-')[0] + " por contratar a: " + x.string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment