diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 04:49:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 04:49:40 +0000 |
| commit | 743b511c7587a219e40c73bf12911a3ed7998e73 (patch) | |
| tree | 6583df46734bbfb01704064809d8e5d959cdf546 | |
| parent | f3aef7d890dc492005d2ef3c5247cd7b76a7de16 (diff) | |
automatic import of python-rss-parser
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-rss-parser.spec | 296 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 298 insertions, 0 deletions
@@ -0,0 +1 @@ +/rss-parser-0.2.4.tar.gz diff --git a/python-rss-parser.spec b/python-rss-parser.spec new file mode 100644 index 0000000..92b4f22 --- /dev/null +++ b/python-rss-parser.spec @@ -0,0 +1,296 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rss-parser +Version: 0.2.4 +Release: 1 +Summary: Typed pythonic RSS parser +License: GPLv3 +URL: https://dhvcc.github.io/rss-parser +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/56/f8f1330323c0c2828071f1024375452da716b6bcf01cdded465c054a6ced/rss-parser-0.2.4.tar.gz +BuildArch: noarch + +Requires: python3-bs4 +Requires: python3-pydantic +Requires: python3-lxml +Requires: python3-requests +Requires: python3-pytest + +%description +# Rss parser + +[](https://pepy.tech/project/rss-parser) +[](https://pepy.tech/project/rss-parser/month) +[](https://pepy.tech/project/rss-parser/week) + +[](https://pypi.org/project/rss-parser) +[](https://pypi.org/project/rss-parser) +[](https://pypi.org/project/rss-parser) +[](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) +[](https://dhvcc.github.io/rss-parser#documentation) + +[](https://github.com/dhvcc/rss-parser/actions?query=workflow%3A%22Pypi+publish%22) + +## About + +`rss-parser` is typed python RSS parsing module built using `BeautifulSoup` and `pydantic` + +## Installation + +```bash +pip install rss-parser +``` + +or + +```bash +git clone https://github.com/dhvcc/rss-parser.git +cd rss-parser +pip install . +``` + +## Usage + +```python +from rss_parser import Parser +from requests import get + +rss_url = "https://feedforall.com/sample.xml" +xml = get(rss_url) + +# Limit feed output to 5 items +# To disable limit simply do not provide the argument or use None +parser = Parser(xml=xml.content, limit=5) +feed = parser.parse() + +# Print out feed meta data +print(feed.language) +print(feed.version) + +# Iteratively print feed items +for item in feed.feed: + print(item.title) + print(item.description) + +``` + +## Contributing + +Pull requests are welcome. For major changes, please open an issue first +to discuss what you would like to change. + +Install dependencies with `poetry install` (`pip install poetry`) + +`pre-commit` usage is highly recommended. To install hooks run + +```bash +poetry run pre-commit install -t=pre-commit -t=pre-push +``` + +## License + +[GPLv3](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) + + +%package -n python3-rss-parser +Summary: Typed pythonic RSS parser +Provides: python-rss-parser +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-rss-parser +# Rss parser + +[](https://pepy.tech/project/rss-parser) +[](https://pepy.tech/project/rss-parser/month) +[](https://pepy.tech/project/rss-parser/week) + +[](https://pypi.org/project/rss-parser) +[](https://pypi.org/project/rss-parser) +[](https://pypi.org/project/rss-parser) +[](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) +[](https://dhvcc.github.io/rss-parser#documentation) + +[](https://github.com/dhvcc/rss-parser/actions?query=workflow%3A%22Pypi+publish%22) + +## About + +`rss-parser` is typed python RSS parsing module built using `BeautifulSoup` and `pydantic` + +## Installation + +```bash +pip install rss-parser +``` + +or + +```bash +git clone https://github.com/dhvcc/rss-parser.git +cd rss-parser +pip install . +``` + +## Usage + +```python +from rss_parser import Parser +from requests import get + +rss_url = "https://feedforall.com/sample.xml" +xml = get(rss_url) + +# Limit feed output to 5 items +# To disable limit simply do not provide the argument or use None +parser = Parser(xml=xml.content, limit=5) +feed = parser.parse() + +# Print out feed meta data +print(feed.language) +print(feed.version) + +# Iteratively print feed items +for item in feed.feed: + print(item.title) + print(item.description) + +``` + +## Contributing + +Pull requests are welcome. For major changes, please open an issue first +to discuss what you would like to change. + +Install dependencies with `poetry install` (`pip install poetry`) + +`pre-commit` usage is highly recommended. To install hooks run + +```bash +poetry run pre-commit install -t=pre-commit -t=pre-push +``` + +## License + +[GPLv3](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) + + +%package help +Summary: Development documents and examples for rss-parser +Provides: python3-rss-parser-doc +%description help +# Rss parser + +[](https://pepy.tech/project/rss-parser) +[](https://pepy.tech/project/rss-parser/month) +[](https://pepy.tech/project/rss-parser/week) + +[](https://pypi.org/project/rss-parser) +[](https://pypi.org/project/rss-parser) +[](https://pypi.org/project/rss-parser) +[](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) +[](https://dhvcc.github.io/rss-parser#documentation) + +[](https://github.com/dhvcc/rss-parser/actions?query=workflow%3A%22Pypi+publish%22) + +## About + +`rss-parser` is typed python RSS parsing module built using `BeautifulSoup` and `pydantic` + +## Installation + +```bash +pip install rss-parser +``` + +or + +```bash +git clone https://github.com/dhvcc/rss-parser.git +cd rss-parser +pip install . +``` + +## Usage + +```python +from rss_parser import Parser +from requests import get + +rss_url = "https://feedforall.com/sample.xml" +xml = get(rss_url) + +# Limit feed output to 5 items +# To disable limit simply do not provide the argument or use None +parser = Parser(xml=xml.content, limit=5) +feed = parser.parse() + +# Print out feed meta data +print(feed.language) +print(feed.version) + +# Iteratively print feed items +for item in feed.feed: + print(item.title) + print(item.description) + +``` + +## Contributing + +Pull requests are welcome. For major changes, please open an issue first +to discuss what you would like to change. + +Install dependencies with `poetry install` (`pip install poetry`) + +`pre-commit` usage is highly recommended. To install hooks run + +```bash +poetry run pre-commit install -t=pre-commit -t=pre-push +``` + +## License + +[GPLv3](https://github.com/dhvcc/rss-parser/blob/master/LICENSE) + + +%prep +%autosetup -n rss-parser-0.2.4 + +%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-rss-parser -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.4-1 +- Package Spec generated @@ -0,0 +1 @@ +53bd5a227489dd86ae216b12590e471a rss-parser-0.2.4.tar.gz |
