我正在写一个程序怪物网站找工作并打印出所有的职位。当我运行它时,它什么也不打印,所以我添加了一个列表范围(现在被注释掉了)以查看列表是否正在填充。不是的。请告诉我我做错了什么。在
这是密码。我是python新手,但对我来说这应该可以。在
提前谢谢。在
#! /usr/bin/python
import re
import requests
from urllib import urlopen
from BeautifulSoup import BeautifulSoup
webpage = urlopen("http://jobsearch.monster.com/search/Engineer_5?q=Software&where=AZ&rad=20&sort=rv.di.dt").read()
listIterator = []
#listIterator[:] = range(1,50)
soup = BeautifulSoup(webpage)
titleSoup = soup.findAll("title")
for i in listIterator:
print titleSoup[i]
print "\n"
raw_input("Press enter to close: ")
相关问题 更多 >
编程相关推荐