Skip to main content

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

History Node

0.0.9.dev-20121012

This version
History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
avoin-0.0.8.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Oct 12, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page