本人小白这一段代码看不明白,请教大神
for i in range(0,count):
html = urllib.request.urlopen(url, context=ctx).read()
soup = BeautifulSoup(html, 'html.parser')
tags=soup('a')
url=tags[pos-1].get('href',None)
print(url)
benny817
2019/08/16 12:01- python
- 点赞
- 收藏
- 回答
满意答案