Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

GetTaoBaoProduct

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

GetTaoBaoProduct

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

GetTaoBaoProduct

通过淘宝或天猫商品链接获取商品信息,商品信息包括标题、价格、图片。

环境说明

ruby 2.0.0

安装方法

在 Gemfile 文件中加入以下代码:

gem "GetTaoBaoProduct", "~> 0.0.3"

然后执行:

$ bundle

或者你可以通过 gem installl 直接安装:

$ gem install GetTaoBaoProduct

使用方法


require 'GetTaoBaoProduct'

item = GetTaoBaoProduct::Item.new

info  = item.get_info 'http://item.taobao.com/item.htm?id=16434110195'

p info #hash format,{ title: xxx, price: xxx, img: xxx, url: url }

测试文件见test.rb

FAQs

Package last updated on 26 Dec 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc