@@ -0,0 +1,617 @@
+# Source:https://github.com/Show-Me-the-Code/show-me-the-code%0A# Author:renzongxian%0A# Date:2014-12-20%0A# Python 3.4%0A%0A%22%22%22%0A%0A%E7%AC%AC 0008 %E9%A2%98%EF%BC%9A%E4%B8%80%E4%B8%AAHTML%E6%96%87%E4%BB%B6%EF%BC%8C%E6%89%BE%E5%87%BA%E9%87%8C%E9%9D%A2%E7%9A%84%E6%AD%A3%E6%96%87%E3%80%82%0A%0A%22%22%22%0A%0Aimport urllib.request%0Aimport re%0A%0A%0Adef get_body(url):%0A    html_content = urllib.request.urlopen(url).read()%0A    r = re.compile('%3Cp%3E(?:%3C.%5B%5E%3E%5D*%3E)?(.*?)(?:%3C.%5B%5E%3E%5D*%3E)?%3C/p%3E')%0A    result = r.findall(html_content.decode('GBK'))%0A    return result%0A%0A%0Aif __name__ == '__main__':%0A    body = get_body('http://tech.163.com/14/1219/01/ADPT7MTE000915BF.html')%0A    file_object = open('result.txt', 'w')%0A    for l in body:%0A        file_object.write(l + '%5Cn')%0A    file_object.close()%0A%0A

Add the solution to 0008