上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: #coding=utf-8 import time import requests from lxml import etree from pymongo import MongoClient from selenium import webdriver client = MongoClient("IP", 27017) db = client["Automobile"] collectio... 阅读全文
posted @ 2018-08-06 15:24 右介 阅读(855) 评论(0) 推荐(0) 编辑
摘要: NSTL国家科技图书文献中心 2017 机械 仪表工业 所有期刊论文信息 代码比较随意,不要介意 第一步,爬取所有期刊链接 第二步,爬取每个期刊中所有2017年论文链接 第三步,爬取论文信息详情页源码 第四步,解析源码 阅读全文
posted @ 2018-06-19 16:48 右介 阅读(2522) 评论(0) 推荐(0) 编辑
摘要: 数据集可在 https://datahub.io/JohnSnowLabs/population-figures-by-country 下载 阅读全文
posted @ 2018-04-10 14:31 右介 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 代码中数据从 www.wunderground.com/history/ 下载 阅读全文
posted @ 2018-04-10 10:39 右介 阅读(2730) 评论(0) 推荐(0) 编辑
摘要: 模拟同时掷两个6面骰子1000次的结果: 阅读全文
posted @ 2018-04-09 16:04 右介 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 给定一个仅包含0-9的字符串和一个目标值,返回在数字之间添加了二元运算符(不是一元的) +、-或*之后所有能得到目标值的情况。 例如: 阅读全文
posted @ 2018-03-29 18:37 右介 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 下架主节点: db.adminCommand({replSetStepDown : 1, force : true}) 删除节点: rs.remove("IP:PORT") 新增节点: rs.add({_id: ***, host:'IP:PORT',"key":value}) 阅读全文
posted @ 2018-03-28 15:41 右介 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1、关闭一直处于RECOVERING状态的mongodb server /opt/mongodb/mongodb-linux-x86_64-2.4.8/bin/mongo 127.0.0.1:22001 use admin use admin db.shutdownServer() 2、将原数据目录 阅读全文
posted @ 2018-03-28 14:55 右介 阅读(5500) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import requests from pymongo import MongoClient from lxml import etree import datetime client = MongoClient("localhost", 27017) db = client["wanfang"] collection=db["journal_name"] c... 阅读全文
posted @ 2018-03-12 09:24 右介 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 为接下来按刊名爬取期刊论文做准备。 阅读全文
posted @ 2018-03-09 14:06 右介 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页