import urllib.request
from bs4 import BeautifulSoup
url="http://www.biquge5200.com/52_52542/"
req = urllib.request.Request(url)
response = urllib.request.urlopen(req)
data = response.read()
data=data.decode("gbk")
soup=BeautifulSoup(data)
soup=BeautifulSoup(str(soup.find(id='list')))
list=soup.find_all('a');
for l in range(9,len(list)):
print(list[l].get('href'),list[l].text)
url="http://www.biquge5200.com/52_52542/150290199.html"
req = urllib.request.Request(url)
response = urllib.request.urlopen(req)
data = response.read()
data=data.decode("gbk")
soup=BeautifulSoup(data)
soup=BeautifulSoup(str(soup.find(id='content'))