d0nk / parler-tricks
- четверг, 14 января 2021 г. в 00:27:33
Python
Reverse engineered Parler API
Parler's unofficial API with all endpoints present in their iOS app as of 08/12/2020.
For the most part undocumented, but the error responses are already quite descriptive.
Any endpoint starting with /v3/
is protobuf-based. The .proto files can be found elsewhere.
Use it to solve fun mysteries such as:
(interactions >> 5) & 1
= moderator, (interactions >> 6) & 1
= admin)I rushed this just so I didn't have to stare at ghidra anymore. There might be bugs/typos. Patches welcome.
from parler import Parler
parler = Parler('mst_cookie', 'jst_cookie') # You can also just do the login flow.
parler.user_api.get_profile_for_user(params={'id': 'a078092e6e2df507bfd12db4710202ab'})
Digital Millennium Copyright Act (DMCA) USC § 1201 (f) states:
A person who has lawfully obtained the right to use a copy of a computer program may circumvent a technological measure that effectively controls access to a particular portion of that program for the sole purpose of identifying and analyzing those elements of the program that are necessary to achieve interoperability of an independently created computer program with other programs, and that have not previously been readily available to the person engaging in the circumvention, to the extent any such acts of identification and analysis do not constitute infringement under this title.