Skip to main content

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

Metadata

Release files for wattpad-api 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wattpad-api 1.0.1
File Interpreter ABI Platform Actions
wattpad_api-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for wattpad_api-1.0.1-py2.py3-none-any.whl

Release files / wattpad_api-1.0.1-py2.py3-none-any.whl

Download URL wattpad_api-1.0.1-py2.py3-none-any.whl
Size 9.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8af9dac65c36b036ba7deb297fab5bfcd7c066fe67770bce62c8832911b4fd8a
BLAKE2b-256 checksum
How to use checksums
3d8e66b448ef9d6a4c83a6b403a5652f987ffc1ccb849f28fed9c5f4cd8f67ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for wattpad-api 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page