1. #coding=utf-8
    2. import hackhttp
    3. from bs4 import BeautifulSoup
    4. url = 'http://jandan.net/ooxx'
    5. hh = hackhttp.hackhttp()
    6. code, head, html, redirect_url, log = hh.http(url)
    7. soup = BeautifulSoup(html, "lxml");
    8. content = soup.find_all('a',class_="view_img_link" );
    9. print content;
    10. for i in range(len(content)):
    11. print content[i]['href']