Swiftpack.co - theBreadCompany/pixivswift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by theBreadCompany.
theBreadCompany/pixivswift v1.1.4
A port of upbit's pixivpy library.
⭐️ 2
🕓 5 days ago
iOS macOS linux windows
.package(url: "https://github.com/theBreadCompany/pixivswift.git", from: "v1.1.4")

pixivswift

A port of upbit's pixivpy library.

Disclaimer

This whole piece is provided as is, and I am not responsible for any psychological/physical damage or law violations, i. e. hardware damage or consumption of questionable content.

Also, please do not overuse this. Pixiv has no financial benefit from this, and they somehow have to finance their servers, too...

Features

Installation

Swift Package Manager

Documentation

The project is documented, everything can be found in Xcode's Developer Documentation (shift+cmd+0)

Notes

  • The PublicAPI is deprecated and will receive no further support.
  • ugoiras are essentially image sequences which have to be assembled manually -> the image urls contain a link to a zip file containing the images. Fetch this first, unzip, fetch metadata via AppPixivAPI.ugoira_metadata and use the first given frame delay for assembling. Take a look at PixivDownloader.zip_to_ugoira.

TODO

  • write more tests
  • actually finally finish the fix for headless login
  • introduce a proper repo structure (like a dev branch) and version management (patches are always pushed without updating the tag, meaning clients using this pkg will have the bugs that are solved in HEAD (aaa))

Announcements

I'll release a repo of an iOS/macOS app using this API soon. You can already find my script using this API here.

Credits

  • pixiv.net for their amazing platform
  • upbit for providing his work as opensource
  • Apple for creating a powerful language that is really nice to learn and use

GitHub

link
Stars: 2
Last commit: 5 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v1.1.4
5 days ago

Solve errors issued by SPM because Zip used features considered unstable; switched to ZIPFoundation.

Full Changelog: https://github.com/theBreadCompany/pixivswift/compare/v1.1.3...v1.1.4

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics