A Python API wrapper for the social media app Lapse.
Project description
Install
pip install lapsepy
Getting Started
Features:
- Modify your bio, display name, date of birth, emojis, and username. Many past what's allowed on the app!
- Upload any image to your darkroom and make it develop at any time!
- Get your friends feed, and download images.
Getting your refresh token:
One of the most challenging parts of this project is authentication, it uses Apple's App Attest in place of a captcha. As far as I'm aware there's no work around without jailbreaking your phone / using a modified version of the app. I'm planning on waiting for Lapse's Android version to try to reverse engineer it there.
How to get your refresh token (Windows-Iphone):
Method 1 (Semi automated):
- Follow the instructions on my LapsePyRefreshTokenSniffer project.
Method 2 (Completely manual):
- Log out of the app
- Install MitMProxy Make sure to install all certificates required. Certificates
- Start MitMWeb ignoring the host
register.appattest.apple.com
usingmitmweb --ignore-hosts register.appattest.apple.com
- Get your computer's ip address. Open your terminal and write
ipconfig
- On your phone go to Settings -> Network -> -> info -> proxy -> manual and enter the proxy information.
- Open the Lapse app and sign in.
- Watch your proxies API calls for the second call to
https://auth.production.journal-api.lapse.app/verify
and inspect it. - Go to the Response tab, and set
view
tojson
- Copy the refresh token from the response.
How to use examples:
- Clone the repository
git clone https://github.com/quintindunn/lapsepy.git
- OPTION 1: Set your refresh token in your environment variable as
REFRESH_TOKEN
OPTION 2: In the examples replace theos.getenv("REFRESH_TOKEN")
with"YOUR_REFRESH_TOKEN"
- Run the file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lapsepy-1.0.1.tar.gz
(22.1 kB
view hashes)
Built Distribution
lapsepy-1.0.1-py3-none-any.whl
(25.8 kB
view hashes)