Skip to main content

Mention-Python

https://img.shields.io/pypi/v/MentionAPI.svg https://travis-ci.org/mazi76erX2/mention-python.svg?branch=master https://codecov.io/gh/mazi76erX2/mention-python/branch/master/graph/badge.svg https://readthedocs.org/projects/mention-python/badge/?version=latest

A Python wrapper around the Mention API.

Installation

$ python3 -m pip install mention
>>> from mention import FetchAMentionAPI
>>> first_mention = FetchAMentionAPI('access_token', 'account_id', 'alert_id', 'mention_id')

>>> first_mention_data = first_mention.query()

>>> title = first_mention_data['title']

Examples

Fetch all alerts of an account

>>> allAlerts = mention.FetchAlertsAPI(access_token, account_id)

>>> data = nandosAlert.query()

>>> alertsList = data['alerts']
>>> alertsList[5]['alert']['name']
'Nandos'

>>> data['alert']['query']['included_keywords']
['Nandos', 'Flame-grilled Chicken', 'Peri-Peri Sauce']

Fetch a mention

>>> nandosMention = mention.FetchAMentionAPI(access_token, account_id, alert_id, mention_id)

>>> data = nandosMention.query()

>>> data['title']
"Nando's launches their own food ordering app"

>>> data['description']
"Nando's has launched their own app that will allow people to order their favourite meal from the comfort
... of their own home."

>>> data['original_url']
'https:\/\/www.iol.co.za\/business-report\/technology\/nandos-launches-their-own-food-
... ordering-app-18378360'

Read More

Metadata

Release files for mention 0.1

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

Source distribution (sdist)

Source distribution for mention 0.1
File Size Uploaded Provenance Actions
mention-0.1.tar.gz 6.7 kB Without provenance Details for mention-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mention 0.1
File Interpreter ABI Platform Actions
mention-0.1-py3-none-any.whl Python 3 none any Details for mention-0.1-py3-none-any.whl

Total release size: 14.7 kB

Release files / mention-0.1.tar.gz

Download URL mention-0.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
998db351380060ad5ca20d844398cbf5a5eac447bd809a3abbb0c9929f034a2a
BLAKE2b-256 checksum
How to use checksums
3b872b44c801232d8e5f3ba057dcc97d90c5f4dad90d3480be544e826cc8d2a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

Release files / mention-0.1-py3-none-any.whl

Download URL mention-0.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
786cf064a982f5d9745eb8332fa7f0eef06b4e9e7cec26468c1b529fbf1482e1
BLAKE2b-256 checksum
How to use checksums
3c7f6d1ea6010fd86aead9ff97fbbecbe174b3bf54ed6498202e302d4f6671f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

Security for mention 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

0.1 This release

2 release files 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