Skip to content

prashkr/slink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slink

A web crawler in C++ which takes as input two cities and shows bus schedule between them.
It sends request to travelyaari.com and stores the response in Redis cache.

It can be used in the following two modes:

  • A command line interface and,
  • A webapp using codeIgniter MVC framework

Libraries


C++ Files:


  • crawl_cli.cpp - for command line interface.
  • crawl_server.cpp - server for codeIgnitor MVC framework

Installation:


  • First install Redis server using the following command:
    sudo apt-get install redis-server

  • Clone this repository:
    git clone https://github.com/prashkr/slink.git

  • Run make install

  • Run make compile

Running:


  • Start redis server by typing redis-server on terminal.

  • For command line interface
    ./crawl_cli <source_city> <destination_city>
    e.g. ./crawl_cli Delhi Mumbai

  • For Webapp

    • Copy codeIgnitor into your server folder so you can access the webapp on http://localhost
      If you don't have a server running then you can use php to create a server
      cd CodeIgniter-3.0.0
      Run "php -S 127.0.0.1:80"
      Now you can see the webapp on http://localhost
    • Run ./crawl_server so that server starts listening for request from Webapp.

About

Bus schedule crawler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors