From 636f26dca0a72cde2fe33a18af537fb30e664120 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 13:19:31 +0000 Subject: automatic import of python-animeworld --- .gitignore | 1 + python-animeworld.spec | 270 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 272 insertions(+) create mode 100644 python-animeworld.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..448bba7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/animeworld-1.5.1.tar.gz diff --git a/python-animeworld.spec b/python-animeworld.spec new file mode 100644 index 0000000..a5cd74d --- /dev/null +++ b/python-animeworld.spec @@ -0,0 +1,270 @@ +%global _empty_manifest_terminate_build 0 +Name: python-animeworld +Version: 1.5.1 +Release: 1 +Summary: AnimeWorld UNOFFICIAL API +License: MIT +URL: https://github.com/MainKronos/AnimeWorld-API +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a7/73/d6a3f0890b3d38c2e44b989c67d1b169fa5c4b5889e9e4310a73109369f6/animeworld-1.5.1.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-youtube-dl +Requires: python3-beautifulsoup4 + +%description +![AnimeWorld](/documentation/img/AnimeWorld-API.png) +# AnimeWorld-API + +![Version](https://img.shields.io/pypi/v/animeworld) +![Activity](https://img.shields.io/github/commit-activity/w/MainKronos/AnimeWorld-API) +![Publish to PyPI](https://github.com/MainKronos/AnimeWorld-API/workflows/Publish%20to%20PyPI/badge.svg) + +![PyPI - Downloads](https://img.shields.io/pypi/dm/animeworld) +![PyPI - Downloads](https://img.shields.io/pypi/dw/animeworld) +![PyPI - Downloads](https://img.shields.io/pypi/dd/animeworld) + +AnimeWorld-API is an unofficial library for [AnimeWorld](https://www.animeworld.tv/) (Italian anime site). + +## Installazione +Questa libreria richiede [Python 3.6](https://www.python.org/) o superiore. + +È Possibile installarare la libreria tramite pip: +```shell script +pip install animeworld +``` + +## Utilizzo +Per ricercare un anime per nome nel sito di animeWolrd è possibile usare la funzione find(). +```python +import animeworld as aw + +res = aw.find("No game no life") +print(res) +``` +La funzione estituirà un dizionario contentente per chiave il nome dell'anime e per valore il link della pagina di animeworld. +```python +{ + 'name': 'No Game no Life', + 'link': 'https://www.animeworld.tv/play/no-game-no-life.IJUH1' +} +``` +È Possibile anche scaricare gli episodi di un anime. +```python +import animeworld as aw + +anime = aw.Anime(link="https://www.animeworld.tv/play/danmachi-3.Ydt8-") +for episodio in anime.getEpisodes(): + print("Episodio Numero: ", episodio.number) + + if(episodio.download()): + print("scaricato") + else: + print("errore") + + if x.number == '1': break +``` +``` +Episodio Numero: 1 +scaricato +``` + +## Utilizzo Avanzato +Per testare velocemete le funzionalità della libreria è possibile usare e consultare il file di esempio: [`example.py`](/documentation/example.py). + +Per un utilizzo avanzato consultare la [documentazione](https://github.com/MainKronos/AnimeWorld-API/wiki). + +## Contributing +Se volete contribuire aprendo Issue o Pull a questa libreria siete ben accetti, tutto il codice sorgente e la documentazione è reperible su [GitHub](https://github.com/MainKronos/AnimeWorld-API). + +Se volete aggiungere un nuovo server da cui scaricare gli episodio, allora leggere la sezione [contributing](https://github.com/MainKronos/AnimeWorld-API/blob/master/CONTRIBUTING.md). + + +%package -n python3-animeworld +Summary: AnimeWorld UNOFFICIAL API +Provides: python-animeworld +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-animeworld +![AnimeWorld](/documentation/img/AnimeWorld-API.png) +# AnimeWorld-API + +![Version](https://img.shields.io/pypi/v/animeworld) +![Activity](https://img.shields.io/github/commit-activity/w/MainKronos/AnimeWorld-API) +![Publish to PyPI](https://github.com/MainKronos/AnimeWorld-API/workflows/Publish%20to%20PyPI/badge.svg) + +![PyPI - Downloads](https://img.shields.io/pypi/dm/animeworld) +![PyPI - Downloads](https://img.shields.io/pypi/dw/animeworld) +![PyPI - Downloads](https://img.shields.io/pypi/dd/animeworld) + +AnimeWorld-API is an unofficial library for [AnimeWorld](https://www.animeworld.tv/) (Italian anime site). + +## Installazione +Questa libreria richiede [Python 3.6](https://www.python.org/) o superiore. + +È Possibile installarare la libreria tramite pip: +```shell script +pip install animeworld +``` + +## Utilizzo +Per ricercare un anime per nome nel sito di animeWolrd è possibile usare la funzione find(). +```python +import animeworld as aw + +res = aw.find("No game no life") +print(res) +``` +La funzione estituirà un dizionario contentente per chiave il nome dell'anime e per valore il link della pagina di animeworld. +```python +{ + 'name': 'No Game no Life', + 'link': 'https://www.animeworld.tv/play/no-game-no-life.IJUH1' +} +``` +È Possibile anche scaricare gli episodi di un anime. +```python +import animeworld as aw + +anime = aw.Anime(link="https://www.animeworld.tv/play/danmachi-3.Ydt8-") +for episodio in anime.getEpisodes(): + print("Episodio Numero: ", episodio.number) + + if(episodio.download()): + print("scaricato") + else: + print("errore") + + if x.number == '1': break +``` +``` +Episodio Numero: 1 +scaricato +``` + +## Utilizzo Avanzato +Per testare velocemete le funzionalità della libreria è possibile usare e consultare il file di esempio: [`example.py`](/documentation/example.py). + +Per un utilizzo avanzato consultare la [documentazione](https://github.com/MainKronos/AnimeWorld-API/wiki). + +## Contributing +Se volete contribuire aprendo Issue o Pull a questa libreria siete ben accetti, tutto il codice sorgente e la documentazione è reperible su [GitHub](https://github.com/MainKronos/AnimeWorld-API). + +Se volete aggiungere un nuovo server da cui scaricare gli episodio, allora leggere la sezione [contributing](https://github.com/MainKronos/AnimeWorld-API/blob/master/CONTRIBUTING.md). + + +%package help +Summary: Development documents and examples for animeworld +Provides: python3-animeworld-doc +%description help +![AnimeWorld](/documentation/img/AnimeWorld-API.png) +# AnimeWorld-API + +![Version](https://img.shields.io/pypi/v/animeworld) +![Activity](https://img.shields.io/github/commit-activity/w/MainKronos/AnimeWorld-API) +![Publish to PyPI](https://github.com/MainKronos/AnimeWorld-API/workflows/Publish%20to%20PyPI/badge.svg) + +![PyPI - Downloads](https://img.shields.io/pypi/dm/animeworld) +![PyPI - Downloads](https://img.shields.io/pypi/dw/animeworld) +![PyPI - Downloads](https://img.shields.io/pypi/dd/animeworld) + +AnimeWorld-API is an unofficial library for [AnimeWorld](https://www.animeworld.tv/) (Italian anime site). + +## Installazione +Questa libreria richiede [Python 3.6](https://www.python.org/) o superiore. + +È Possibile installarare la libreria tramite pip: +```shell script +pip install animeworld +``` + +## Utilizzo +Per ricercare un anime per nome nel sito di animeWolrd è possibile usare la funzione find(). +```python +import animeworld as aw + +res = aw.find("No game no life") +print(res) +``` +La funzione estituirà un dizionario contentente per chiave il nome dell'anime e per valore il link della pagina di animeworld. +```python +{ + 'name': 'No Game no Life', + 'link': 'https://www.animeworld.tv/play/no-game-no-life.IJUH1' +} +``` +È Possibile anche scaricare gli episodi di un anime. +```python +import animeworld as aw + +anime = aw.Anime(link="https://www.animeworld.tv/play/danmachi-3.Ydt8-") +for episodio in anime.getEpisodes(): + print("Episodio Numero: ", episodio.number) + + if(episodio.download()): + print("scaricato") + else: + print("errore") + + if x.number == '1': break +``` +``` +Episodio Numero: 1 +scaricato +``` + +## Utilizzo Avanzato +Per testare velocemete le funzionalità della libreria è possibile usare e consultare il file di esempio: [`example.py`](/documentation/example.py). + +Per un utilizzo avanzato consultare la [documentazione](https://github.com/MainKronos/AnimeWorld-API/wiki). + +## Contributing +Se volete contribuire aprendo Issue o Pull a questa libreria siete ben accetti, tutto il codice sorgente e la documentazione è reperible su [GitHub](https://github.com/MainKronos/AnimeWorld-API). + +Se volete aggiungere un nuovo server da cui scaricare gli episodio, allora leggere la sezione [contributing](https://github.com/MainKronos/AnimeWorld-API/blob/master/CONTRIBUTING.md). + + +%prep +%autosetup -n animeworld-1.5.1 + +%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-animeworld -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot - 1.5.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..adb792a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +0d6acc5b40fafe416982c0c45ffd622e animeworld-1.5.1.tar.gz -- cgit v1.2.3