Git Product home page Git Product logo

paperspider's Introduction

PaperSpider

A Python Web Crawler for Paper data crawling powered by Scrapy.

PaperSpider是一个用于抓取期刊文章相关信息的爬虫程序,基于Scrapy框架编写。

目前支持的期刊:

安装python以及scrapy

  • 安装python

    本程序基于python2.7编写, 可以从 http://python.org/download/ 上安装Python 2.7

  • 安装scrapy框架

    $ pip install scrapy
    

    具体不同平台安装scrapy框架的方法, 详见: 安装指南

使用方法(以爬去JACS文章信息为例)

  1. 输入文件 在/paper_spider下的jacs_input.txt中填入将要爬取的卷号和期刊号。

    例如,要爬取卷号为138,期刊号为16 和 卷号为137,期刊号为13的所有文章信息(标题,发表日期,作者,摘要等),如下格式填写输入文件:

    # Volume number, issue number
    volume_issue = [(138, 16), (137, 13)]
  2. 开始爬取

    在项目的根目录/paper_spider执行

    $ scrapy crawl jacs

    爬取结果会自动保存在jacs.txt中。

    若想要以不同的格式保存数据:

    $ scrapy crawl jacs -o jacs.json -t json  # 以json格式保存
    $ scrapy crawl jacs -o jacs.csv -t csv  # 以csv格式保存

    具体的保存方式详见Feed exports

*本爬虫目前还不支持保存到数据库,后续会加入对MySQL、MongoDB的支持。

paperspider's People

Contributors

pytlab avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.