Singer tap for extracting data from the Pocket API.
Built with the Meltano Singer SDK.
catalogstatediscoveraboutstream-mapsschema-flatteningbatch
| Setting | Required | Default | Description |
|---|---|---|---|
| consumer_key | True | None | Pocket application key |
| access_token | True | None | Pocket user access token |
| start_date | False | None | The earliest record datetime to sync as a UNIX timestamp |
| favorite | False | None | Set to true to sync only favorite items, false to sync only non-favorite items, or omit to sync all items |
| content_type | False | None | The content type of items to sync. By default, all content types are synced. |
| state | True | all | Type of item state to sync. By default, all states are synced. |
| tag | False | None | The tag to sync. By default, all tags are synced. Use _untagged_ to sync untagged items. |
| stream_maps | False | None | Config object for stream maps capability. For more information check out Stream Maps. |
| stream_map_config | False | None | User-defined config values to be used within map expressions. |
| flattening_enabled | False | None | 'True' to enable schema flattening and automatically expand nested properties. |
| flattening_max_depth | False | None | The max depth to flatten schemas. |
| batch_config | False | None |
A full list of supported settings and capabilities is available by running: tap-getpocket --about
- 3.9
- 3.10
- 3.11
- 3.12
- 3.13
pipx install git+https://github.com/edgarrmondragon/tap-getpocket.gitA full list of supported settings and capabilities for this tap is available by running:
tap-getpocket --about- Create a Pocket application: https://getpocket.com/developer/apps/new.
- Use the app's consumer key to make a request to the
/v3/oauth/requestwith ru endpoint to get arequest_token(code). - Use the
request_tokento get authorization from the Pocket user:https://getpocket.com/auth/authorize?request_token=<request_token>&redirect_uri=<redirect_uri>. - Make a request to the
/v3/oauth/authorizeendpoint to get anaccess_token. - Put
consumer_keyandaccess_tokenin a JSON config file.
Documentation: https://getpocket.com/developer/docs/authentication
You can easily run tap-getpocket by itself or in a pipeline using Meltano.
tap-getpocket --version
tap-getpocket --help
tap-getpocket --config CONFIG --discover > ./catalog.jsonpipx install hatchRun integration tests:
hatch run test:integrationYou can also test the tap-getpocket CLI interface directly:
hatch run sync:console -- --about --format=jsonTesting with Meltano
Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.
Your project comes with a custom meltano.yml project file already created. Go ahead and install Meltano if you haven't already.
-
Install all plugins
meltano install
-
Check that the extractor is working properly
meltano invoke tap-getpocket --version
-
Execute an ELT pipeline
meltano run tap-getpocket target-jsonl