Code Monkey home page Code Monkey logo

intranet-crawler's Introduction

intranet-crawler

Crawl the intranet and create a database structure. Crawling takes a long time especially at depths > 3. Run with perl scripts/crawlIntranet.pl --help for usage.

Dependencies

Uses some non-core perl modules. Install with cpanm

cpanm WWW::SimpleRobot HTML::Strip --verbose

Example crawling

perl scripts/crawlIntranet.pl --depth 1 --site http://about.google/ --index data/intranet.1depth.tsv
# Apply scores to make searching better
perl scripts/addScoresToDatabase.pl data/intranet.1depth.tsv > data/intranet.1depth.scores.tsv

Database structure

Tab seprated file of

word  url  [score]

Where score is present only if you ran addScoresToDatabase.pl

Example queries

Search results will include the URL and the search score.

$ perl scripts/search.pl --depth 1 --numhits 10 ambitious leadership
search.pl: Total hits found: 2. Displaying up to the top 10 hits.
https://sustainability.google/  0.555248061
https://diversity.google/annual-report/ 0.27038993

intranet-crawler's People

Contributors

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