Berkanktk / BeReal-Fetcher

A script to scrape data from BeReal without posting anything.
MIT License
18 stars 2 forks source link

Add support for memories #2

Closed ishan0102 closed 2 years ago

ishan0102 commented 2 years ago

Hi, thank you so much for making this, it's very well written! I'd been searching for soemthing like this for a while and yours was the best one I've found. I noticed there was an endpoint not covered by your script: https://mobile.bereal.com/api/feeds/memories. I was wondering if you were willing to add support for this? I would love to download all of my memories. Thank you!

Berkanktk commented 2 years ago

You actually only need to change the endpoint at line 70 from this:

response = requests.get('https://mobile.bereal.com/api/feeds/friends', headers=headers, params=params, verify=False)

to this

response = requests.get('https://mobile.bereal.com/api/feeds/memories', headers=headers, params=params, verify=False)

And it will work perfectly fine :)

ishan0102 commented 2 years ago

Amazing, thank you!

ishan0102 commented 2 years ago

@Berkanktk Sorry to bother you, but do you have the SECURE_TOKEN value or is it different for each user? If so, could you send it to me by chance, I kind of want to avoid paying for Charles Proxy 😅

Berkanktk commented 2 years ago

Sorry for the late answer, I didn’t have time to reply earlier. The SECURE_TOKEN is not private, but since Github wouldn’t be happy about me posting some sort of token, i'll just send it to your E-mail! 💯

ishan0102 commented 2 years ago

Got it, thank you so much :) Starred the repo as well!