Spidy - Web scraping simplified!
Project description
Overview
Spidy is an open source scripting language for Web scraping. Spidy allows building tools and applications which provide Web scraping features to wide audience of users.
Despite beign a scripting language, Spidy attempts to standardize Web scraping tasks around such fundamental tools like Web-get and XPath selectors. While URLs allow to reference arbitrary document on the Web, Spidy goes one step further to allow to referencing arbitrary piece of data with just a few lines of script, which is easy to create, distribute and understand.
Here are major features the package offers:
Flexibility of scripting language
XPath selectors to extract data
Unified document model for HTML and JSON formats
Templates for better output formatting
Robust error handling and logging
Requirements
Spidy is written in Python and relies on Python Standard Library only.
Python 2.7
Mac OS X, Windows, Linux, BSD
Install
Installing from Python Package Index:
pip install spidy
For Windows installation instructions, please see documentation in docs directory.
‘Hello, World!’ in Spidy
Loading document or Web resource, for example trending repos page on GitHub:
get 'https://github.com/explore' as html
Selecting and returning trending repos links using XPath with class selector:
return &'//*[@class="repo-name css-truncate css-truncate-target"]'
And all together using Spidy API:
import spidy print spidy.do(''' get 'https://github.com/explore' as html return &'//*[@class="repo-name css-truncate css-truncate-target"]' ''')
will output list of relative links to stdout. Check out documentation for more examples.
Documentation
Documentation is available in the docs directory. Script examples are located in examples directory.
Feedback
Spidy is non-profit, meaning further development needs good reason to go on. We are happy to hear positive feedback, but also we can’t wait to learn what’s bad, so please send your thoughts and our bugs to spidy.feedback@gmail.com. Thank you and have a good scraping!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Spidy-0.2.tar.gz
.
File metadata
- Download URL: Spidy-0.2.tar.gz
- Upload date:
- Size: 54.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b283ede056850381fa7d7430a58de94c9759aa2d43bd1ec629d16043f2d5ab9 |
|
MD5 | c217ffec32cc0a9dc19b01a7fd45514c |
|
BLAKE2b-256 | c27740ee8c82a50556b72725fa763b7a87fb20d1c7d46723fab493950b5ee67c |