summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 09:36:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 09:36:58 +0000
commitef96e19b66cd84b95163cab06af354e587976fd2 (patch)
tree2257ee26d0bf7baa94c2bd99b1e43cc643237910
parentffc10cfa941d8d929f7bc588b7a5d477f0c47450 (diff)
automatic import of python-yifyapi
-rw-r--r--.gitignore1
-rw-r--r--python-yifyapi.spec389
-rw-r--r--sources1
3 files changed, 391 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3aa8be3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/YifyAPI-0.6.5.tar.gz
diff --git a/python-yifyapi.spec b/python-yifyapi.spec
new file mode 100644
index 0000000..f8eaabd
--- /dev/null
+++ b/python-yifyapi.spec
@@ -0,0 +1,389 @@
+%global _empty_manifest_terminate_build 0
+Name: python-YifyAPI
+Version: 0.6.5
+Release: 1
+Summary: A scraping API for Yify.
+License: MIT License
+URL: https://github.com/ArjixGamer/YifyAPI
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/be/d3/5b371abdf837a668f16d2428e54743bc77e0cecab0887d22ae66c44baa5a/YifyAPI-0.6.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-beautifulsoup4
+Requires: python3-requests
+
+%description
+This is my API for scraping [Yify](https://www.yts.mx)
+
+[![PyPI version](https://badge.fury.io/py/YifyAPI.png)](https://badge.fury.io/py/YifyAPI) [![Build Status](https://travis-ci.com/ArjixGamer/YifyAPI.svg?branch=master)](https://travis-ci.com/ArjixGamer/YifyAPI)
+
+**#USAGE**
+
+First you have to import it.
+
+```python
+from YifyAPI import yify as api
+```
+
+Now you are ready to use it!
+
+Currently the only method is :
+
+```python
+api.search_yify(query: str, proxy=None)
+```
+
+It will return a list with dictionaries for each movie result found, example below:
+
+```
+{
+ "title": "Sonic the Hedgehog",
+ "year": "2020",
+ "director": [
+ "Jeff Fowler",
+ "https://www.imdb.com/name/nm1733778/"
+ ],
+ "cast": [
+ [
+ "Jim Carrey",
+ "https://www.imdb.com/name/nm0000120/"
+ ],
+ [
+ "James Marsden",
+ "https://www.imdb.com/name/nm0005188/"
+ ],
+ [
+ "Neal McDonough",
+ "https://www.imdb.com/name/nm0568180/"
+ ],
+ [
+ "Tika Sumpter",
+ "https://www.imdb.com/name/nm1754366/"
+ ]
+ ],
+ "subtitles": "https://yifysubtitles.org/movie-imdb/tt3794354/",
+ "related_movies": [
+ [
+ "Clerks II (2006)",
+ "https://yts.mx/movies/clerks-ii-2006"
+ ],
+ [
+ "Planet of the Apes (1968)",
+ "https://yts.mx/movies/planet-of-the-apes-1968"
+ ],
+ [
+ "*batteries not included (1987)",
+ "https://yts.mx/movies/batteries-not-included-1987"
+ ],
+ [
+ "Hedgehog (2017)",
+ "https://yts.mx/movies/hedgehog-2017"
+ ]
+ ],
+ "synopsis": "Based on the global blockbuster videogame franchise from Sega, SONIC THE HEDGEHOG tells the story of the world's speediest hedgehog as he embraces his new home on Earth. In this live-action adventure comedy, Sonic and his new best friend Tom (James Marsden) team up to defend the planet from the evil genius Dr. Robotnik (Jim Carrey) and his plans for world domination. The family-friendly film also stars Tika Sumpter and Ben Schwartz as the voice of Sonic.",
+ "categories": [
+ "Action",
+ "Adventure",
+ "Comedy",
+ "Family",
+ "Sci-Fi"
+ ],
+ "link": "https://yts.mx/movies/sonic-the-hedgehog-2020",
+ "imdbLink": "https://www.imdb.com/title/tt3794354/",
+ "trailer": "https://www.youtube.com/watch?v=szby7ZHLnkA",
+ "imdbRating": "6.6/10",
+ "image": "https://img.yts.mx/assets/images/movies/sonic_the_hedgehog_2020/medium-cover.jpg",
+ "qualities": {
+ "720p.WEB": {
+ "size": "908.03 MB",
+ "magnet": "magnet:?....."
+ },
+ "720p.BluRay": {
+ "size": "1.82 GB",
+ "magnet": "magnet:?....."
+ }
+ }
+}
+```
+
+if something goes bad and there was an error then it will return this:
+
+```
+{'status': "error"}
+```
+
+So make sure to check if the response is equal to the one above with an if statement.
+
+
+
+If you encounter any bug with my code or you want to contribute in any way then [here](https://github.com/ArjixGamer/YifyAPI) is the github link
+
+
+
+%package -n python3-YifyAPI
+Summary: A scraping API for Yify.
+Provides: python-YifyAPI
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-YifyAPI
+This is my API for scraping [Yify](https://www.yts.mx)
+
+[![PyPI version](https://badge.fury.io/py/YifyAPI.png)](https://badge.fury.io/py/YifyAPI) [![Build Status](https://travis-ci.com/ArjixGamer/YifyAPI.svg?branch=master)](https://travis-ci.com/ArjixGamer/YifyAPI)
+
+**#USAGE**
+
+First you have to import it.
+
+```python
+from YifyAPI import yify as api
+```
+
+Now you are ready to use it!
+
+Currently the only method is :
+
+```python
+api.search_yify(query: str, proxy=None)
+```
+
+It will return a list with dictionaries for each movie result found, example below:
+
+```
+{
+ "title": "Sonic the Hedgehog",
+ "year": "2020",
+ "director": [
+ "Jeff Fowler",
+ "https://www.imdb.com/name/nm1733778/"
+ ],
+ "cast": [
+ [
+ "Jim Carrey",
+ "https://www.imdb.com/name/nm0000120/"
+ ],
+ [
+ "James Marsden",
+ "https://www.imdb.com/name/nm0005188/"
+ ],
+ [
+ "Neal McDonough",
+ "https://www.imdb.com/name/nm0568180/"
+ ],
+ [
+ "Tika Sumpter",
+ "https://www.imdb.com/name/nm1754366/"
+ ]
+ ],
+ "subtitles": "https://yifysubtitles.org/movie-imdb/tt3794354/",
+ "related_movies": [
+ [
+ "Clerks II (2006)",
+ "https://yts.mx/movies/clerks-ii-2006"
+ ],
+ [
+ "Planet of the Apes (1968)",
+ "https://yts.mx/movies/planet-of-the-apes-1968"
+ ],
+ [
+ "*batteries not included (1987)",
+ "https://yts.mx/movies/batteries-not-included-1987"
+ ],
+ [
+ "Hedgehog (2017)",
+ "https://yts.mx/movies/hedgehog-2017"
+ ]
+ ],
+ "synopsis": "Based on the global blockbuster videogame franchise from Sega, SONIC THE HEDGEHOG tells the story of the world's speediest hedgehog as he embraces his new home on Earth. In this live-action adventure comedy, Sonic and his new best friend Tom (James Marsden) team up to defend the planet from the evil genius Dr. Robotnik (Jim Carrey) and his plans for world domination. The family-friendly film also stars Tika Sumpter and Ben Schwartz as the voice of Sonic.",
+ "categories": [
+ "Action",
+ "Adventure",
+ "Comedy",
+ "Family",
+ "Sci-Fi"
+ ],
+ "link": "https://yts.mx/movies/sonic-the-hedgehog-2020",
+ "imdbLink": "https://www.imdb.com/title/tt3794354/",
+ "trailer": "https://www.youtube.com/watch?v=szby7ZHLnkA",
+ "imdbRating": "6.6/10",
+ "image": "https://img.yts.mx/assets/images/movies/sonic_the_hedgehog_2020/medium-cover.jpg",
+ "qualities": {
+ "720p.WEB": {
+ "size": "908.03 MB",
+ "magnet": "magnet:?....."
+ },
+ "720p.BluRay": {
+ "size": "1.82 GB",
+ "magnet": "magnet:?....."
+ }
+ }
+}
+```
+
+if something goes bad and there was an error then it will return this:
+
+```
+{'status': "error"}
+```
+
+So make sure to check if the response is equal to the one above with an if statement.
+
+
+
+If you encounter any bug with my code or you want to contribute in any way then [here](https://github.com/ArjixGamer/YifyAPI) is the github link
+
+
+
+%package help
+Summary: Development documents and examples for YifyAPI
+Provides: python3-YifyAPI-doc
+%description help
+This is my API for scraping [Yify](https://www.yts.mx)
+
+[![PyPI version](https://badge.fury.io/py/YifyAPI.png)](https://badge.fury.io/py/YifyAPI) [![Build Status](https://travis-ci.com/ArjixGamer/YifyAPI.svg?branch=master)](https://travis-ci.com/ArjixGamer/YifyAPI)
+
+**#USAGE**
+
+First you have to import it.
+
+```python
+from YifyAPI import yify as api
+```
+
+Now you are ready to use it!
+
+Currently the only method is :
+
+```python
+api.search_yify(query: str, proxy=None)
+```
+
+It will return a list with dictionaries for each movie result found, example below:
+
+```
+{
+ "title": "Sonic the Hedgehog",
+ "year": "2020",
+ "director": [
+ "Jeff Fowler",
+ "https://www.imdb.com/name/nm1733778/"
+ ],
+ "cast": [
+ [
+ "Jim Carrey",
+ "https://www.imdb.com/name/nm0000120/"
+ ],
+ [
+ "James Marsden",
+ "https://www.imdb.com/name/nm0005188/"
+ ],
+ [
+ "Neal McDonough",
+ "https://www.imdb.com/name/nm0568180/"
+ ],
+ [
+ "Tika Sumpter",
+ "https://www.imdb.com/name/nm1754366/"
+ ]
+ ],
+ "subtitles": "https://yifysubtitles.org/movie-imdb/tt3794354/",
+ "related_movies": [
+ [
+ "Clerks II (2006)",
+ "https://yts.mx/movies/clerks-ii-2006"
+ ],
+ [
+ "Planet of the Apes (1968)",
+ "https://yts.mx/movies/planet-of-the-apes-1968"
+ ],
+ [
+ "*batteries not included (1987)",
+ "https://yts.mx/movies/batteries-not-included-1987"
+ ],
+ [
+ "Hedgehog (2017)",
+ "https://yts.mx/movies/hedgehog-2017"
+ ]
+ ],
+ "synopsis": "Based on the global blockbuster videogame franchise from Sega, SONIC THE HEDGEHOG tells the story of the world's speediest hedgehog as he embraces his new home on Earth. In this live-action adventure comedy, Sonic and his new best friend Tom (James Marsden) team up to defend the planet from the evil genius Dr. Robotnik (Jim Carrey) and his plans for world domination. The family-friendly film also stars Tika Sumpter and Ben Schwartz as the voice of Sonic.",
+ "categories": [
+ "Action",
+ "Adventure",
+ "Comedy",
+ "Family",
+ "Sci-Fi"
+ ],
+ "link": "https://yts.mx/movies/sonic-the-hedgehog-2020",
+ "imdbLink": "https://www.imdb.com/title/tt3794354/",
+ "trailer": "https://www.youtube.com/watch?v=szby7ZHLnkA",
+ "imdbRating": "6.6/10",
+ "image": "https://img.yts.mx/assets/images/movies/sonic_the_hedgehog_2020/medium-cover.jpg",
+ "qualities": {
+ "720p.WEB": {
+ "size": "908.03 MB",
+ "magnet": "magnet:?....."
+ },
+ "720p.BluRay": {
+ "size": "1.82 GB",
+ "magnet": "magnet:?....."
+ }
+ }
+}
+```
+
+if something goes bad and there was an error then it will return this:
+
+```
+{'status': "error"}
+```
+
+So make sure to check if the response is equal to the one above with an if statement.
+
+
+
+If you encounter any bug with my code or you want to contribute in any way then [here](https://github.com/ArjixGamer/YifyAPI) is the github link
+
+
+
+%prep
+%autosetup -n YifyAPI-0.6.5
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-YifyAPI -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..df75dee
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a6cdefafc705ed1d9b5c1d267a4e1d8c YifyAPI-0.6.5.tar.gz