标签:导入 插入 sts imp .com 小爬虫 os模块 处理 学习
潜伏了两天,认真学习了爬虫,现在开始模仿别人写我的小爬虫代码了,第一个爬虫开始扒一下新浪国内新闻:http://news.sina.com.cn/china/
开始:
import requests#插入请求模块
from bs4 import BeautifulSoup#从BS4导入BeautifulSoup
import os#插入os模块用于文件处理
标签:导入 插入 sts imp .com 小爬虫 os模块 处理 学习
原文地址:http://www.cnblogs.com/Jiang190/p/6764400.html