Skip to content

ypcs/avoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d0d39b4 · Oct 12, 2012

History

26 Commits
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012

Repository files navigation

avoin

Python code for data scraping
(c) 2012 Ville Korhonen ([email protected]), 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages