Skip to content

Shinso is a tool that will "vampire" content by crawling.

Notifications You must be signed in to change notification settings

YavorIvanov/Shinso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Shinso

Welcome to Shinso.rb

Shinso is a tool that will "vampire" content by crawling, parsing and making smart decisions about the page content.

You should be able to use shinso in a Rails 2.3 environment with ruby 1.8 without much hustle.

Getting Started

  1. Put the shunso.rb file in your Ruby on Rails project under the models folder.

  2. Requirements

  • ruby 1.8+
  • rails 2.3+
  • zlib
  • nokogiri
  • sanitize
  • htmlentities
  • readability
  • charguess
  • rest-client
  1. In your controller simple do

     @shinso = Shinso.new
     timeout(25) do
       if @shinso.crawl(params[:url])
         @shinso.parse()
         @shinso.decision()
         #@shinso.semantics()
       end
     end
    

    where "semantics" is a way you can call a service to return some custom data back to you

Contributing

The code is very legacy now. Contributions are welcome as long as they are tested against a bunch of multi-language articles.

License

Shinso.rb is released under the MIT License.

About

Shinso is a tool that will "vampire" content by crawling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages