python知网工具,一个中国知网的爬虫工具,给定作者,可以获得该作者的所有文献的题录...

cnki-spyder-tool是一个用于从中国知网爬取特定作者所有文献题录的Python工具。通过输入作者名称和单位,可以获取到作者的相关文献URL,并进一步获取文献的详细信息。
摘要由CSDN通过智能技术生成

cnki-spyder-tool

一个中国知网的爬虫工具,给定作者,可以获得该作者的所有文献的题录

范例

使用时需要将文件tool.py放在正确的位置

import sys

sys.path.append(".")

import tool as cnki

from pprint import pprint as fprint

if __name__ == "__main__":

tmp = cnki.get_doc_url_set("牛丽慧","南京大学")

fprint(tmp)

res_file = open("res.csv","a",encoding="utf-8",newline="")

for item in tmp:

cnki.get_doc_bibilo(item,res_file)

res_file.close()

文档

Help on module tool:

NAME

tool

DESCRIPTION

Eng:

This module is written for scraping bibilograph of literature from cnki.

It relies on python modules below:

1. requests

2. bs4

you can easily get them using tool like pip.

中文:

这个模块用来爬取中国知网的文

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值