Coder Social home page Coder Social logo

gzachos / ir-course-uoi-data Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 167.05 MB

Wikipedia crawler and preprocessor

Home Page: https://gzachos.com/ir-course-uoi-data/

License: GNU General Public License v2.0

Python 100.00%
information-retrieval web-crawler wikipedia-scraper html-preprocessor

ir-course-uoi-data's Introduction

ir-course-uoi-data

The project for the Information Retrieval course @cse.uoi.gr is about implementing a search engine for Wikipedia articles using Apache Lucene.

Article crawling is performed using crawl-wikipedia.py and is organized in two stages.

  • In stage one, the crawler reads crawler-seeds.txt and retrieves the corresponding webpages which are parsed to identify more URLs to Wikipedia articles, continuing recursively until the required amount of URLs has been reached.
  • In stage two, Wikipedia articles specified by the URls retrieved in stage one are downloaded by multiple threads to achieve a small download time (by utilizing larger bandwidth). The raw HTML files are stored in repository/ directory.

Plain text extraction from HTML files is performed by preprocess.py and output text files are stored in corpus/ directory. Because repository/ and corpus/ exceed 1 GB of storage size, corpus/ directory has not been uploaded in git. In ir-course-uoi, the implementation of the search engine has taken place.

Screenshots

scraping-statistics.png preprcessing-statistics.png

License

GNU GENERAL PUBLIC LICENSE Version 2, June 1991

ir-course-uoi-data's People

Contributors

gzachos 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.