Code Monkey home page Code Monkey logo

zeek's People

Contributors

bryant1410 avatar diastro avatar lozadaomr avatar stevenmaude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zeek's Issues

Configuration deployment logic

Server first sends a configuration packet to all of its clients so that they share the same crawling settings.

  • Server -> Config - > Client
  • Client -> Ack -> Server
  • Server -> Sends first urls -> ...

Configuration parser

Application will be able to parse a configuration file and use the needed values from it.

URL scrapping rule

Server will be able to specify to either crawl a specific list of URL (static), crawl indefinitely (dynamic) or domain specific.

Server will inform node of the crawling type when sending the config info.

Socket communication

  • Socket
  • Error handling
  • Transmission and reception of data (serialized object using pickle)

Overlapping protocol packet causing a block

Socket communication wasn't using delimiters which cause (in rare cases since I test Zeek running multiple python process on the same server) the ServerSideClient to block on a read eventhough it had received more then a full packet.

Fix:
Added a delimiter and after receiving data we check to see if there's a delimiter in the buffer. If so, we take the complete packet that's in there.

Dynamic module reload

rule.py and scrapping.py are not being reloaded from client.py but from original imported file.

Enhancement needed to reload them from client.py

Packet containers

Creation of the object class that will be passed between the server node and the working nodes

URL scrapping

Read all the URLs in a webpage

  • Handle illegal cases (bad extensions .mp3 .mp4 etc)

Do not visit rule

Create rules to prevent the scrapper to go visit certain urls:

  • .mp3
  • .mp4
  • .jpg
  • etc

Data container

Class structure containing all relevant data for a visited site:

  • Return code (400, 201)
  • Processing time
  • The page data
  • etc

Logging module

  • Console logging.
  • Save logs to an output file.
  • Allow multiple level of logging (INFO, DEBUG, CRITICAL, ERROR)

URL Scrapping and Processing logic

Working node needs to be able to scrape URLs from a web page and return the list of scrapped URLs to the server.

In the event that a URLs request isn't successful, the working node needs to return and inform the server.

URL dispatching (basic)

Fix queue size.

Each serverSide client will have a fix number of URL dispatched to them (ie 20). Everytime a client replies after visiting a site a new url will be sent.

URL dispatching

Dispatching of urls :

ServerSide

  • Visited URL
  • URL to visit

Client:

  • URL to visit
  • No visited URL queue since the crawling thread will create the response packet to reply to the server

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.