爬取新闻
Cep�Murphy laws
这个作者很懒,什么都没留下…
展开
-
爬取股票数据
import requestsfrom bs4 import BeautifulSoupimport pymongoclient = pymongo.MongoClient(host='localhost',port=27017,connect=False)stocks = client['stock']stock_data = stocks['stock_data']if "stoc...原创 2020-02-28 12:12:48 · 209 阅读 · 1 评论 -
爬虫 python 爬取澎湃新闻
import requestsimport pymongofrom bs4 import BeautifulSoupimport getNewsclient = pymongo.MongoClient(host='localhost',port=27017,connect=False)pengpai = client['pengpai']if 'pengpai_news' in pe...原创 2020-02-13 16:36:58 · 1811 阅读 · 0 评论