Skip to main content

A no-compromises wrapper for the Wattpad API

Project description

Wattpad API

This is a no-compromise Wattpad API wrapper for python.

This project is still in development, and is not yet ready for production use.

It also speeds up the process by using disk caching, It will cache the response from the API and will only make a new request if the request is not cached.

This, of course can be disabled by setting the cache to False.

Features

  • Simple and easy to use

  • Caches responses from the API to disk for faster response times

  • Allows direct access to the API via the fetch method

  • Allows exporting of the objects to DICT, JSON, or YAML

Installation

pip install wattpad-api

Usage

from wattpad import Wattpad, Story



engine = Wattpad()

wounded_love = Story.from_id(336166598, engine)



print(wounded_love.title)

print(wounded_love.author)

TODO

  • Implement the export methods

  • Implement the cache

  • Implement the fetch method

  • Implement the search method

  • Wrap the ENTIRE API

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wattpad_api-1.0.1-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wattpad_api-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for wattpad_api-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8af9dac65c36b036ba7deb297fab5bfcd7c066fe67770bce62c8832911b4fd8a
MD5 8f3abc58a33fa52e92d792c6e928d6e0
BLAKE2b-256 3d8e66b448ef9d6a4c83a6b403a5652f987ffc1ccb849f28fed9c5f4cd8f67ea

See more details on using hashes here.

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