
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
hpricot helper that scrapes html easily by parser class defined css selector
class UserParser < CssParser css :name, "div#contents span.name" css :age , "div#contents span.age" end
parser = UserParser.file('user.html') User.new parser.attributes
"css" accepts :as option to specify output format. Let's consider following html.
Maiha (maiha)When the case of :html formatter, this is in default.
class UserParser < CssParser css :name, "span.name" end
UserParser.new(html).name
When the case of :text formatter.
class UserParser < CssParser css :name, "span.name", :as=>:text end
UserParser.new(html).name
Copyright (c) 2008 maiha@wota.jp, released under the MIT license
FAQs
Unknown package
We found that maiha-css_parser 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.