Skip to main content

A Python API wrapper for the social media app Lapse.

Project description

LapsePy

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):

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 using mitmweb --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 to json
  • Copy the refresh token from the response.

How to use examples:

  1. Clone the repository git clone https://github.com/quintindunn/lapsepy.git
  2. OPTION 1: Set your refresh token in your environment variable as REFRESH_TOKEN
    OPTION 2: In the examples replace the os.getenv("REFRESH_TOKEN") with "YOUR_REFRESH_TOKEN"
  3. Run the file.

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

lapsepy-1.2.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

lapsepy-1.2.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file lapsepy-1.2.0.tar.gz.

File metadata

  • Download URL: lapsepy-1.2.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for lapsepy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 3ddf929da68ea21b66de2b76c0a384e20db40833093f7b665e85bb8b4da1c252
MD5 ef795654a9d9e12c06ce07e8e5b19dfe
BLAKE2b-256 04042360739aabd2a2196af2be5b945c4253d3bbe61e6e079b4293f71ad42a94

See more details on using hashes here.

File details

Details for the file lapsepy-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: lapsepy-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for lapsepy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 034fb1ccd8287a26b83e751d89e23f6e639b231352c75782b82954e03f20a388
MD5 ac37462c0fd384ca9222dbd00fd7a994
BLAKE2b-256 3e19b20790fe7910034304d5d77b09dbebf91686643d8268573e191d7a0b0100

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