Misc python tools
Project description
# avoin Python code for data scraping (c) 2012 Ville Korhonen (ville@xd.fi), GPLv3
## Installation You may install directly from PyPI using:
pip install avoin
or latest HEAD via git:
pip install git+https://github.com/ypcs/avoin.git#egg=avoin
- ## Using (via Python Shell)
>>> from avoin.scraper.scraper import DefaultScraper, html_title_parser >>> scraper = DefaultScraper() >>> url = 'http://www.google.com/'
>>> result = scraper.parse(url, parser=html_title_parser) >>> print result Google
>>> result = scraper.parse(url, parser=html_title_parser, format='json') >>> print result "Google"
## Using (via command line) Fetch all URLs from webpage as plaintext
avoin xpath –url ‘http://ypcs.fi/’ –xpath ‘//a/@href’ –format text
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
avoin-0.0.8.tar.gz
(3.0 kB
view details)
File details
Details for the file avoin-0.0.8.tar.gz
.
File metadata
- Download URL: avoin-0.0.8.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c2b64b86222d51fa09d6d7be03d60f879355649bdffd74d48b66af9ed304a7 |
|
MD5 | 436798267b3f0d603b5527fe7b9aaa6e |
|
BLAKE2b-256 | ed6e6660ae58d457bb145e717a08c6cd7348ba1b35268b78036429f7c89fa97b |