Giter Site home page Giter Site logo

bytereaver's Introduction

ByteReaver 0.1

ByteReaver is a program that crawls webpages within a domain to retrieve information. Unlike many other spiders, this one uses Google Chrome Driver instead of a headless browser and can thus see content that is rendered dynamically in javascript. The program writes the information into a .txt file that is designed to be easily imported into excel, as data is delimited by commas and newline characters. Simply copy and paste into a spreadsheet and split the new column into additional columns.

How to Use It

The program will require an installation of Java, and a Unix command line (Terminal) to run the program. ByteReaver has not yet been tested on Windows or Linux, and at time of writing has only been tested on macOS Sierra 10.12.

On macOS, you can launch an instance of Terminal by finding the icon in the "Other" section of Launchpad.

screenshot of options section of Launchpad

To check if Java is installed on your computer, type the following into Terminal.

java -version

If a version number is not displayed, visit this page and follow the installation instructions. It is also recommended that you upgrade Java if you are not using version 1.8 or higher.

After verifying that Java is on your machine, ensure that all files and folders are in place. The Chrome Driver executable (v 2.29) should be included in the root of the repository as a 'chromedriver' Unix executable, and should work with any Chrome Drivers v2.29 or higher. It must be in the same directory as the .jar to work.

If the installation was performed properly, and if the terminal window was navigated to the correct directory, one would type something like the following to initiate ByteReaver:

java -jar ByteReaver.jar http://www.example.com 123 345

Note that if an error like this is received: Error: Unable to access jarfile Test.jar it means that the terminal window is not in the same directory as the jar file. Please see this tutorial to learn how to navigate using the terminal if you don't know how to do it.

In the initialization command, the '123' and '345' represent parameters telling the program the maximum number of contacts to extract and the largest number of queries to be made, respectively. These parameters will default to 100 and 1,000, respectively.

You will know that the program initiated successfully if a new instance of chrome appears on your screen and if a new file was created in the root directory of ByteReaver. Terminal will also respond, outputting URLs as Chrome begins to visit them.

Initiation of ByteReaver

Additional Features

ByteReaver writes files dynamically, as data are received. If the program is interrupted in the middle of a crawl, contacts will not be lost, and post-run statistics will still be calculated!

Future Plans

The current design is focused on retrieving contact information and keywords through regex functions although there are many more functionalities that may be implemented in the future, along with some sort of GUI.

Binary search has just been implemented for quicker searching through filters, although customizability of the filters is still lacking. In future designs, users will have the ability to load custom filters into the program.

bytereaver's People

Contributors

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