Skip to main content

Web and document parser, converter and scraper for Plucker, the Palm OS app

Project description

PyPlucker

Palm OS PyPI

It's 2022 and you need a Palm again!

This is an updated version of the original Python based Plucker parser. It downloads and converts your favorite web pages and local files for the Plucker app.

Some of the updates are:

  • The code has been ported to Python 3
  • The default image parser is now based on Pillow which doesn't require any platform native dependencies and adds WebP support as a bonus.
  • Some legacy bits have been removed: OS/2 support, non-working image parser versions

Installation

pip install PyPlucker

Optionally, install the example ~/.pluckerrc config and a ~/.plucker/home.html index file.

Usage

For example, running the below:

plucker-build -H http://www.floodgap.com/retrotech/plua/ -M 1 -f Plua_Revisited --bpp=4 --maxwidth=150

Will:

  1. Download the http://www.floodgap.com/retrotech/plua/ page and not follow any links in it, due to -M 1 (i.e. --maxdepth=1)
  2. Convert all the graphics to 16 shades of gray due to bpp=4 and resize to 150 pixels of maximum width (maxwidth=150)
  3. Produce a file called Plua_Revisited.pdb in the ~/.plucker directory

See ~/.pluckerrc for more options and parameters.

Notes

Complex pages

For best results, it's a good idea to run more complex pages through a modern Readability filter like percollate first. See a working example script.

Compatibility

  • PyPlucker produced documents are known to be compatible with the Palm OS Plucker application versions 1.2 and above.
  • For Palm OS 3.0 and above you can use the --compression=zlib option to make the output files much smaller. Make sure that you install SysZLib.prc first.

References

Project details


Release history Release notifications | RSS feed

This version

3.7

Download files

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

Source Distribution

PyPlucker-3.7.tar.gz (138.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page