GithubHelp home page GithubHelp logo

sla235-intro-dh's Introduction

Philosophy Wiki Scraper

SLA235 Introduction to Digital Humanities Team Project

Stanford Encyclopedia of Philosophy (SEP)Internet Encyclopedia of Philosophy (IEP)에서 문서들을 스크래핑합니다.

How to use

Prerequisite

  • 실행을 위해서 파이썬 3.9 이상이 필요합니다.
  • 아래 명령을 통해 패키지를 설치해야합니다
    pip install -r requirements.txt
    
    또는 virtualenv 환경에서 사용할 수도 있습니다.

Run

  • scrap.py를 실행해서 스크래핑을 진행합니다. 결과는 sep.dbiep.db에 저장됩니다.
    python scrap.py
    
  • 결과는 sqlite3로 저장되며, table schema는 아래와 같습니다.
    id integer PRIMARY KEY,
    uri TEXT,
    title TEXT,
    abstract TEXT,
    contents TEXT,
    body TEXT,
    bibliography TEXT
    

Structure

  • base.py
    • wiki class의 abc(Abstract Base Class)가 작성되어있음.
    • 구현체에서 구현한 메소드들을 이용해서 스크래핑을 진행하는 scrap() 메소드가 정의되어있음.
  • wikis.py
    • wiki별로 파싱 메소드들이 작성되어있음.
  • scrap.py
    • 해당 프로젝트의 entry point
    • 작성된 메소드들을 이용해서 multi threading으로 스크래핑 진행

sla235-intro-dh's People

Contributors

crmin avatar

Stargazers

 avatar  avatar

Watchers

 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.