Skip to content
/ PyPlucker Public

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

License

Notifications You must be signed in to change notification settings

lxmx/PyPlucker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages