likee.cr v0.2.3
Likee
Unofficial Likee API wrapper for Crystal.
The integration tests are scheduled to run twice a day, through Github Actions.
See also: Likee Scraper.
Index
Disclaimer
This lib is in no way affiliated with, authorized, maintained or endorsed by Likee or any of its affiliates or subsidiaries.
This is purely an educational proof of concept.
Installation
-
Add the dependency to your
shard.yml
:dependencies: likee: github: kandayo/likee.cr
-
Run
shards install
Usage
For more examples, please refer to the documentation.
require "likee"
Get user videos
Gets a collection of videos published by the given user.
The parameters last_post_id (as in, offset) and limit may be used to paginate through the user profile.
videos = Likee.user_videos(user_id: "111")
videos.count # => 30
Get user posts count
Gets the posts count of the given user.
user_info = Likee.user_posts_count(user_id: "1111")
user_info.videos_count # => 550
user_info.likes_count # => 1_000_000
user_info.moments_count # => 22
Contributing
- Fork it (https://github.com/kandayo/likee.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- kandayo - creator and maintainer
Repository
likee.cr
Owner
Statistic
- 4
- 2
- 0
- 0
- 2
- over 3 years ago
- February 14, 2021
License
Links
Synced at
Sun, 17 Nov 2024 13:37:39 GMT
Languages