Coder Social home page Coder Social logo

Comments (4)

felipecsl avatar felipecsl commented on May 8, 2024

I need more information in order to help you.
What is dashing?
Can you post the ruby code for the wombat scraper you wrote?

from wombat.

shushiej avatar shushiej commented on May 8, 2024

Hi,
Dashing is a sinatra based framework in which you create a dashboard for
display on monitors. :
http://shopify.github.io/dashing/

I wanted to use the wombat gem in order to gather information from a
website and display it on a dashboard.

require 'wombat'

Wombat.crawl do
base_url "http://www.github.com"
path "/"

headline xpath: "//h1"
subheading css: "p.subheading"

what_is({ css: ".teaser h3" }, :list)

search css: '.search'
features css: '.features'
blog css: '.blog'

SCHEDULER.every '10s' do
send_event('wombat_test', text: search)
end
end

I just used what you provided me in the example page just to try and test
it out.
SCHEDULER.every '10s' do
send_event('wombat_test', text: search)
end

This bit of code is responsible for sending the information to the actual
widget, but other than that the code is similar. I understand it will be
difficult without knowing that the code does, sorry about that.

On Mon, Nov 25, 2013 at 7:33 PM, Felipe Lima [email protected]:

I need more information in order to help you.
What is dashing?
Can you post the ruby code for the wombat scraper you wrote?


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-29180446
.

from wombat.

felipecsl avatar felipecsl commented on May 8, 2024

You cannot use that block inside the crawler DSL:

  SCHEDULER.every '10s' do
    send_event('wombat_test', text: search)
  end

Wombat will try to parse that and it won't understand, so it will break your crawler.
Just remove that or do it ouside the crawl block

from wombat.

shushiej avatar shushiej commented on May 8, 2024

Awesome,
Thanks a lot,
Cheers
Joshi

On Tue, Nov 26, 2013 at 6:48 PM, Felipe Lima [email protected]:

You cannot use that block inside the crawler DSL:

SCHEDULER.every '10s' do
send_event('wombat_test', text: search)
end

Wombat will try to parse that and it won't understand, so it will break
your crawler.
Just remove that or do it ouside the crawl block


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-29269035
.

from wombat.

Related Issues (20)

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.