Python3ã§ãurllibã¨BeautifulSoupã使ã£ã¦Webãã¼ã¸ãèªã¿è¾¼ãæ¹æ³ã«ã¤ãã¦ã¾ã¨ãã¾ãã urllibã使ã£ããã¼ã¸ã®åå¾ ã¾ããPython3ã®æ¨æºã©ã¤ãã©ãªã§ããurllibã使ã£ã¦ãã¼ã¸ãåå¾ãã¾ããPython2ããæ¸ãæ¹ãå¤ãã£ã¦ããã®ã§æ³¨æãå¿ è¦ã§ãã import urllib.request url = 'http://www.rekibun.or.jp/grutto/museum2015.html' response = urllib.request.urlopen(url) data = response.read() ããã§ãresponse.read()ã¯bytesãªãã¸ã§ã¯ããè¿ãã¾ãã以ä¸ã¯ãã®æç²ã§ããæ¥æ¬èªããã¤ãåã¨ãã¦è¡¨ç¾ããã¦ãã¾ã£ã¦ãã¾ãã b'<!DOCTYPE html> (ä¸ç¥) <title>\x8c\xf6\x89v
{{#tags}}- {{label}}
{{/tags}}