用于yify的api的python包装器。
yip的Python项目详细描述
易比
用于Yify API的Python包装器
只实现公共方法,不需要授权。
示例
fromyipy.apiimportYipyapi=Yipy()# Get movies listmovie_list=api.list()# Get movie detailsmovie_details=api.movie_details(movie_id=5496)# Get movie suggestionsmovie_suggestions=api.movie_suggestions(movie_id=5496)# Get movie commentsmovie_comments=api.movie_comments(movie_id=5496)# Get movie reviewsmovie_reviews=api.movie_reviews(movie_id=5496)# Get movie parental guidesmovie_parental_guides=api.movie_parental_guides(movie_id=5496)# Get list upcoming movieslist_upcoming_movies=api.list_upcoming_movies()# Get user detailsuser_details=api.user_details(user_id=16)
可用方法
列表
Used to list and search through out all the available movies. Can sort, filter, search and order the results.
参数:
limit
(int,可选):介于1到50之间(包括1到50) -已设置的每页结果限制page
(int,可选):用于查看电影的下一页 -例如:limit=15,page=2将显示15-30的电影quality
(str,可选):用于按质量筛选。720p
1080p
3D
minimum_rating
(int,可选):介于0-9(含)之间- 用于按给定的最小IMDB分级筛选电影
query_term
(str,可选):用于电影搜索,匹配时间:- 电影标题/IMDb代码
- 演员姓名/IMDB代码
- 董事姓名/IMDB代码
genre
(str,可选):用于按给定类型筛选- 完整列表请参见here
sort_by
(str,可选):按choosen值对结果排序:title
year
rating
peers
seeds
download_count
like_count
date_added
order_by
(str,可选):asc
或desc
按升序或降序对结果排序with_rt_ratings
(bool,可选): -返回包含烂番茄评级的列表
电影详细信息
Returns the information about a specific movie.
Returns the information about a specific movie.
参数:
movie_id
(int):电影的IDwith_images
(bool,可选):设置时,返回的数据将 包括添加的图像URLwith_cast
(bool,可选):设置时返回的数据将 包括有关演员的附加信息
电影建议
Returns 4 related movies as suggestions for the user.
Returns 4 related movies as suggestions for the user.
参数:
movie_id
(int):电影的id
电影评论
Returns all the comments for the specified movie.
Returns all the comments for the specified movie.
参数:
movie_id
(int):电影的id
影评
Returns all the IMDb movie reviews for the specified movie.
Returns all the IMDb movie reviews for the specified movie.
参数:
movie_id
(int):电影的id
电影家长指南
Returns all the parental guide ratings for the specified movie.
参数:
movie_id
(int):电影的id
列出即将上映的电影
Returns the 4 latest upcoming movies.
用户详细信息
Get a user's details.
Returns the 4 latest upcoming movies.
Get a user's details.
参数:
user_id
(int):用户的idwith_recently_downloaded
(bool,可选): 如果设置,它将添加给定用户最近下载的内容