
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Web crawler with JSON-based DSL and EventMachine-powered page fetching
Add this line to your application's Gemfile:
gem 'rumba-crawler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rumba-crawler
Gem supports "css", "root" and "regexp" service keys:
If you have multiple objects of the same type, put object description into [ ].
Besides it supports shortcut for "css" attribute, so if you don't have any nested nodes(leaf node)
and you don't need "root" and "regexp" keys, you can omit "css" key and provide locator as string value
("name": "span.name" in example).
Map your models to page structure like this:
[
{
"game": {
"css":".games",
"teams":[
{
"css": ".teams",
"name": "span.name",
"scores": {
"css":".score",
"regexp":"[0-9]+"
},
"sport": {
"css":"#sport",
"root":"body"
}
}
]
}
}
]
This will allow you to extract data from page for current model structure:
class Game
# has_many :teams
def teams=(array_value)
array_value.each do |value|
Team.find_or_create(value)
end
end
end
class Team
# belongs_to :game
# belongs_to :sport
attr_writer :name, :scores
def sport=(value)
Sport.find_or_create(value)
end
end
class Sport
# has_many :teams
end
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)FAQs
Unknown package
We found that rumba-crawler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.

Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers

Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.