我urlopen
用来阅读网站,但它挂在我的程序中。但是当我从终端和 python 解释器进行测试时,它工作正常。代码是这样的:
page = urlopen ("http://mangafox.me/directory/").read ()
print ('soup')
# soup = BeautifulSoup (urlopen ("http://www.mangafox.me/directory/").read (), 'html.parser')
print ("soup")
manga_img = soup.findAll ('a', {'class' : 'manga_img'}, limit=None)