follow yoyo
# coding:utf-8
from selenium import webdriver
import re
driver = webdriver.Firefox()
driver.get("http://www.cnblogs.com/yoyoketang/")
page = driver.page_source
print(page)
url_list = re.findall('href=\"(.*?)\"',page,re.S)
url_all = []
for url in url_list:
if "http" in url:
print(url)
url_all.append(url)
print(url_all)
很不理解正则表达式的样式,不明白是什么意思:href=\"(.*?)\"
for...in..循环遍历