Python爬蟲學習1

一.概述 最近在學習Python,對於爬蟲這一塊有較大興趣,因而開博客記錄學習歷程。php 在使用中,我沒有使用一些網絡教程中的urllib2模塊,直接使用requests模塊,感受確實很簡單。css 我使用爬蟲抓取sina新聞的有關內容html 二.使用requests獲取html代碼 在這裏直接上代碼python import requests newsurl = "http"//news.s
相關文章
相關標籤/搜索