ä½åº¦ãBeautifulSoupã«ã¤ãã¦ã¯æ¸ãã¦ããã®ã§ãããæªã ã«ä½¿ãæ¹ãè¦ããããã«ã¤ã©ã¤ã©ãã¾ããä»æ¹ãç¡ãã®ã§ã¾ã¨ãã¦ç½®ãäºã«ãã¾ãããBeautifulSoupã¯HTMLããæ å ±ãåå¾ããã ãç¡ããHTMLã®ç·¨éãã§ãã¾ãããããã§ã¯ã¹ã¯ã¬ã¤ãã³ã°ç¨éã®ã¿ã«çµã£ã¦ãã¾ãã 使ç¨ããã®ã¯ä»¥ä¸ã®HTMLã§ãã ãã®HTMLã使ã£ã¦è²ã ã¨æ å ±ãåå¾ããã®ã以ä¸ã§ããè¦ããã¹ãã¯findAllã ãã§ãã注æããå¿ è¦ãããã®ã¯ãtextãæå®ããå ´åã«ã¿ã°ãªãã¸ã§ã¯ããåããã«ãããã¹ããªãã¸ã§ã¯ããåããã®ã§ãä¸æ¦parentã§è¦ªã®ã¿ã°åãã¾ãããã¨ããäºã¨ãæ£è¦è¡¨ç¾ã§æ¡ä»¶æå®ããå ´åã¯ãre.compileã§æ£è¦è¡¨ç¾ãªãã¸ã§ã¯ãã渡ãã¨ããäºä½ã§ããã #!/usr/bin/python # -*- coding: utf-8 -*- import re import urllib f
{{#tags}}- {{label}}
{{/tags}}