This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Piculet is a package for extracting data from XML documents using XPath queries. It can also scrape web pages by first converting the HTML source into XHTML. Piculet consists of a single source file with no dependencies other than the standard library, which makes it very easy to integrate into applications.

Piculet requires Python 3.4 or later. You can install the latest version from PyPI:

pip install piculet

Or, if you like, you can install the development version from the Bitbucket repository:

pip install hg+https://bitbucket.org/uyar/piculet

You can find the documentation on: http://piculet.readthedocs.io/

To extract data from a document, you need to specify the rules for extraction. This specification is in JSON format and you can find a few examples in the examples folder.

Although Piculet is primarily aimed at developers, it also contains a command-line interface where data extraction can be tested. To get an idea about how Piculet works, get the wikipedia.json specification example and run the command given below to get some data out of the Wikipedia page for David Bowie:

$ python piculet.py scrape "https://en.wikipedia.org/wiki/David_Bowie" -s wikipedia.json -r person --html
{
  "birthplace": "Brixton, London, England",
  "born": "1947-01-08",
  "died": "2016-01-10",
  "name": "David Bowie",
  "occupation": [
    "Singer",
    "songwriter",
    "actor"
  ]
}

Installing Piculet through pip will create a script named piculet which can also be used to invoke the command-line interface:

$ piculet scrape "https://en.wikipedia.org/wiki/John_Lennon" -s wikipedia.json -r person --html

For a more complicated example, get the imdb.json specification and run the following command to get details about the movie The Shining:

$ piculet scrape "http://akas.imdb.com/title/tt0081505/combined" -s imdb.json -r movie_combined --html

History

1.0a1 (2016-08-24)

  • First release on PyPI.
Release History

Release History

1.0a1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
piculet-1.0a1.tar.gz (29.4 kB) Copy SHA256 Checksum SHA256 Source Aug 24, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting