Coder Social home page Coder Social logo

webmap's Introduction

WebMap

stupid java spider

I'm never going to update it

How to run

Compiled .jar:

java -jar WebCrawler.jar (SessionName) (Mode) (Submode if available)

A session can be named whatever you want, and inputting the name of a previous session would use that session (if it exists in /Data).

Modes

  • -u URLs (necessary for indexing)

  • -i index (this will autosave files in Data directory)

    Iterations is written after and must be integer (or "inf").

    It determines how many sites the program will process.

    No iteration value, "inf" or any negative number would trigger infinite processing (you can exit anytime).

    • include - only process URLs that matches your regex
    • exclude - exclude all URLs from processing that matches your regex
  • -e export .json (stored in (session name).json in \Data)

  • -j import .json

  • -r recompute (delete all files and reprocess)

  • -q query displays certain URLs onto console

    • include - only display URLs that matches your regex
    • exclude - do not display URLs that matches your regex
  • -s scopes (not implemented)

  • -g graph (not implemented)

How to read files

All sessions are stored in (program location)\Data

There would be 3 files named (session name).index, .map, and .q

.index is a giant list of all the URLs you computed.

.map is a graph showing the relationship between each.

.q is where the program last left off (aka the number of lines in .map)

Lets say the fifth line of .map is "8 2 10 12". This means that the fifth URL in .index links to the 8th, 2nd, 10th, and 12th URL in .index

Libraries used:

webmap's People

Contributors

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