Skip to main content

Parler API library - v2

Project description

Parler API interface for Python

This UNOFFICIAL library designed to programatically fetch data from parler.com

IMPORTANT ANNOUNCEMENT:

This library supports the new (as of 2022-02-06) Parler open-api / logged-in endpoints. Both logged in and guest modes are supported.

To do list:

  • Implement unfinished authed functions
  • Rework experiments
  • Have a github action (several!) to archive posts, run analysises, etc..
  • Testing, testing
  • Publish to pypi

Authentication:

There are two modes of using the API. Authenticated and Guest.

Authentication is done by initializing the Parler class, importing Parler.with_auth and initializing an AuthSession with your credentials.

from Parler import with_auth as authed

au = authed.AuthSession(debug=False)
au.is_logged_in # ==> False
au.login(
	identifier=os.getenv("email"),
	password=os.getenv("password")
)

au.is_logged_in # ==> True

Here is a chart of how the functions are "loginwalled" or not.

Function Description API Type needed
.profile() Get information from a specified username Guest
.discover_feed() Get discovery feed from initial page (kinda like suggested posts for first time users) Guest
.user_feed() Get Parleys and echoes from a specified username Guest
.trending() Get trending posts (today / top) Guest
.feed() Get feed Authenticated
.users() Search for users Authenticated
.hashtags() Search for hashtags Authenticated
.following() Get following profiles from specified username Authenticated
.comments() Get comments from a specified post ID Authenticated
.follow_user() Follow a specified username Authenticated

Installation

From pypi:

pip install parler-api

Clone and run locally:

If using pipenv:

pipenv install
pipenv shell

If using pip:

pip install -r requirements.txt

Experiments:

Collected the suggested hashtags for a 9 hour period, data here

Other experiments available as well.

Contributing:

Feel free to improve the code, submit your experiments and sample code or fix bugs. Before submitting a PR, run pep8 linter on your code.

Donate:

If you found this package useful, consider donating.

Disclaimer:

I am in now way affiliated with Parler, it's subsidiaries or any entity related to the company. I am not responsible for what you do with this Python package.

2009/24/EC Art 5:

The person having a right to use a copy of a computer program shall be entitled, without the authorisation of the rightholder, to observe, study or test the functioning of the program in order to determine the ideas and principles which underlie any element of the program if he does so while performing any of the acts of loading, displaying, running, transmitting or storing the program which he is entitled to do.

Project details


Download files

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

Source Distribution

parler-api-2.0.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

parler_api-2.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file parler-api-2.0.1.tar.gz.

File metadata

  • Download URL: parler-api-2.0.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for parler-api-2.0.1.tar.gz
Algorithm Hash digest
SHA256 a3253763563ae5e7817840638151cb80b41a46ad827e8e0cdc83887e65f9a658
MD5 521d521722b54451e7b3085167269df6
BLAKE2b-256 5224261ebb4db7afc66e27404784ab7628a718c53cb221e7e4dd58124912418e

See more details on using hashes here.

File details

Details for the file parler_api-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: parler_api-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for parler_api-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9649fb2a733d1c828c53921346f412552cda9301403ab465211ea96c8889b801
MD5 be9ec180dae5b767f912b68e6633dec2
BLAKE2b-256 fad8c5c3626921df21ba06494509e4aebd87c6d5f13f407da2a5483af02b2fac

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