Giter Site home page Giter Site logo

pixiv's Introduction

Pixiv gem

A client library for pixiv

Build Status Dependency Status Code Climate

Important Note

The pixiv Guidelines [en, ja] prohibit to crawl the pixiv service. Do not abuse this library or you may be banned!

Installation

Add this line to your application's Gemfile:

gem 'pixiv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pixiv

Synopsis

pixiv = Pixiv.client('pixiv_id', 'password') {|agent|
  agent.user_agent_alias = 'Mac Safari'
}

illust_id = 123
illust = pixiv.illust(illust_id)
if illust.manga?
  pixiv.download_manga(illust, ['manga/', :image_name])
else
  pixiv.download_illust(illust, ['illust/', :image_name])
end

member_id = 456
member = pixiv.member(member_id)
member.works.each do |illust|
  puts illust.title
  puts illust.caption
end

me = pixiv.member
me.bookmarks.each do |illust|
  author = illust.member
  puts author.name
  puts author.works.count
end

Usage

See a sample script

Documentation

Documentation for uasi/pixiv on rubydoc.info

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

pixiv's People

Contributors

kikuchy avatar ota42y avatar sachin21 avatar sanadan avatar uasi avatar yasuyuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pixiv's Issues

NoMethodError: undefined method `pixiv_id=' for nil:NilClass

Summary

I couldn't not login with pixiv_id and password.

Cause

Looks like login form is changed from https://www.secure.pixiv.net/login.php.

Error logs and stack trace

NoMethodError: undefined method `pixiv_id=' for nil:NilClass
from /home/sachin21dev/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/pixiv-0.0.9/lib/pixiv/client.rb:48:in `login'

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.