diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dryscrape.spec | 225 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 227 insertions, 0 deletions
@@ -0,0 +1 @@ +/dryscrape-1.0.tar.gz diff --git a/python-dryscrape.spec b/python-dryscrape.spec new file mode 100644 index 0000000..5379d17 --- /dev/null +++ b/python-dryscrape.spec @@ -0,0 +1,225 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dryscrape +Version: 1.0 +Release: 1 +Summary: a lightweight Javascript-aware, headless web scraping library for Python +License: MIT +URL: https://github.com/niklasb/dryscrape +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b5/75/c45f796ec5bc7f98c38b9ae425390ef5f4a76153c8b5af946adb97e7e622/dryscrape-1.0.tar.gz +BuildArch: noarch + + +%description +# Overview + +**Author:** Niklas Baumstark + +dryscrape is a lightweight web scraping library for Python. It uses a +headless Webkit instance to evaluate Javascript on the visited pages. This +enables painless scraping of plain web pages as well as Javascript-heavy +“Web 2.0” applications like +Facebook. + +It is built on the shoulders of +[capybara-webkit](https://github.com/thoughtbot/capybara-webkit)'s +[webkit-server](https://github.com/niklasb/webkit-server). A big thanks goes +to thoughtbot, inc. for building this excellent piece of software! + +# Changelog + +* 1.0: Added Python 3 support, small performance fixes, header names are now + properly normalized. Also added the function `dryscrape.start_xvfb()` to + easily start Xvfb. +* 0.9.1: Changed semantics of the `headers` function in + a backwards-incompatible way: It now returns a list of (key, value) + pairs instead of a dictionary. + +# Supported Platforms + +The library has been confirmed to work on the following platforms: + +* Mac OS X 10.9 Mavericks and 10.10 Yosemite +* Ubuntu Linux +* Arch Linux + +Other unixoid systems should work just fine. + +Windows is not officially supported, although dryscrape should work +with [cygwin](https://www.cygwin.com/). + +# Installation, Usage, API Docs + +Documentation can be found at +[dryscrape's ReadTheDocs page](http://readthedocs.org/docs/dryscrape/). + +Quick installation instruction: + + # pip install dryscrape + +# Contact, Bugs, Contributions + +If you have any problems with this software, don't hesitate to open an +issue on [Github](https://github.com/niklasb/dryscrape) or open a pull +request or write a mail to **niklas baumstark at Gmail**. + + +%package -n python3-dryscrape +Summary: a lightweight Javascript-aware, headless web scraping library for Python +Provides: python-dryscrape +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dryscrape +# Overview + +**Author:** Niklas Baumstark + +dryscrape is a lightweight web scraping library for Python. It uses a +headless Webkit instance to evaluate Javascript on the visited pages. This +enables painless scraping of plain web pages as well as Javascript-heavy +“Web 2.0” applications like +Facebook. + +It is built on the shoulders of +[capybara-webkit](https://github.com/thoughtbot/capybara-webkit)'s +[webkit-server](https://github.com/niklasb/webkit-server). A big thanks goes +to thoughtbot, inc. for building this excellent piece of software! + +# Changelog + +* 1.0: Added Python 3 support, small performance fixes, header names are now + properly normalized. Also added the function `dryscrape.start_xvfb()` to + easily start Xvfb. +* 0.9.1: Changed semantics of the `headers` function in + a backwards-incompatible way: It now returns a list of (key, value) + pairs instead of a dictionary. + +# Supported Platforms + +The library has been confirmed to work on the following platforms: + +* Mac OS X 10.9 Mavericks and 10.10 Yosemite +* Ubuntu Linux +* Arch Linux + +Other unixoid systems should work just fine. + +Windows is not officially supported, although dryscrape should work +with [cygwin](https://www.cygwin.com/). + +# Installation, Usage, API Docs + +Documentation can be found at +[dryscrape's ReadTheDocs page](http://readthedocs.org/docs/dryscrape/). + +Quick installation instruction: + + # pip install dryscrape + +# Contact, Bugs, Contributions + +If you have any problems with this software, don't hesitate to open an +issue on [Github](https://github.com/niklasb/dryscrape) or open a pull +request or write a mail to **niklas baumstark at Gmail**. + + +%package help +Summary: Development documents and examples for dryscrape +Provides: python3-dryscrape-doc +%description help +# Overview + +**Author:** Niklas Baumstark + +dryscrape is a lightweight web scraping library for Python. It uses a +headless Webkit instance to evaluate Javascript on the visited pages. This +enables painless scraping of plain web pages as well as Javascript-heavy +“Web 2.0” applications like +Facebook. + +It is built on the shoulders of +[capybara-webkit](https://github.com/thoughtbot/capybara-webkit)'s +[webkit-server](https://github.com/niklasb/webkit-server). A big thanks goes +to thoughtbot, inc. for building this excellent piece of software! + +# Changelog + +* 1.0: Added Python 3 support, small performance fixes, header names are now + properly normalized. Also added the function `dryscrape.start_xvfb()` to + easily start Xvfb. +* 0.9.1: Changed semantics of the `headers` function in + a backwards-incompatible way: It now returns a list of (key, value) + pairs instead of a dictionary. + +# Supported Platforms + +The library has been confirmed to work on the following platforms: + +* Mac OS X 10.9 Mavericks and 10.10 Yosemite +* Ubuntu Linux +* Arch Linux + +Other unixoid systems should work just fine. + +Windows is not officially supported, although dryscrape should work +with [cygwin](https://www.cygwin.com/). + +# Installation, Usage, API Docs + +Documentation can be found at +[dryscrape's ReadTheDocs page](http://readthedocs.org/docs/dryscrape/). + +Quick installation instruction: + + # pip install dryscrape + +# Contact, Bugs, Contributions + +If you have any problems with this software, don't hesitate to open an +issue on [Github](https://github.com/niklasb/dryscrape) or open a pull +request or write a mail to **niklas baumstark at Gmail**. + + +%prep +%autosetup -n dryscrape-1.0 + +%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-dryscrape -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +267e380a8efaf9cd8fd94de1639d3198 dryscrape-1.0.tar.gz |