GithubHelp home page GithubHelp logo

roshanconnor123 / eyedex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xosrov/eyedex

0.0 0.0 0.0 71.18 MB

License: GNU General Public License v3.0

C++ 33.87% Python 6.65% CSS 0.56% JavaScript 57.85% HTML 1.04% Makefile 0.03%

eyedex's Introduction

THE EYE SEARCHING TOOL

Search (almost) everything on The-Eye

Major update coming soon - Much faster and much better implementation. This repo will be split and organized soon

LINUX ONLY
Requires at least 2GB's of RAM (database is loaded to RAM)

Before you start

  1. Unzip the database(s)
    • Navigate to the database/ directory
    • Unzip .zip database files where they are
  2. Install required python libraries:
    • Python3 dependencies: pip3 install -r requirements.txt
    • C++ dependencies: apt-get install libboost-dev libz-dev libzmq3-dev
  3. Compile the searcher program
    • Navigate to the cpp/ directory
    • Compile the searcher with "make"

Usage

  1. Load the database:
    • python3 loader.py -f databaseJsonFile
  2. After the database loads, run the server:
    • python3 server.py
    • Use the -h tag for help with additional arguments
  3. Open the local server on a browser(default at localhost:5000)
    • More info on the local server

Updating the database

  1. Navigate to the database/ folder
  2. Run indexer.py
    • Indexer will start saving to json, directories can be skipped with KeyboardInterrupt
    • If a database already exists in the database/ folder, it will update incomplete or out-of-date directories
    • Some pages are blocked or can not be indexed, so you might have to run the indexer multiple times to index everything
    • Defaulted to only work on Public/ and excluding Piracy/(as it's too big)
    • Can be modified to index Priacy/ separately. Just set the GETPIRACY flag in the indexer.py file to True. This saves into a different file and might run into errors because of Cloudflare, so multiple runs are necessary for a full index. The file size is also larger meaning at least 4GB's of RAM is needed.
    • Indexer might not work for directories like alviro/ (slightly different structure | Cloudflare heavily enforced)

Notes

  • Check for updates when you can, this project is still in progress i don't deny there might be bugs(do let me know if you find them).
  • This is NOT a mirror of all files in The-Eye, it is just an index of the files hosted there.
  • You can update the database yourself, but I'll also update them every now and again.
  • Elements of the database like HTML pages are not scraped correctly, they don't affect much but I'll have to remove or notify about them in a future update.
  • I used json as it is easy to use, readable and supports the nested format that i want. The format is easy to iterate over line-by-line because of the predictable way it's formatted. Inspect the first few hundred bytes to see what i mean.

Contribute

Hosting the server

  • The server.py file can be modified to be hosted for public use. You can contribute by hosting the server for other people to use. Send me an email/message if you're interested.

Bugs

  • For any bug reports or suggestions, open an issue. In case of reporting bugs, provide an example of how you reproduced the undesirable outcome.

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.