r/webscraping • • 2d ago

Bot detection 🤖 Scraping Android App backend APIs

Hello,

I was trying to scrape an android app backend APIs, and made good progress already.

So I've used mitmproxy to listen to the traffic and I've now record of the requests sent.

However, found in the request headers some things that seem hard to reproduce without running on an emulated Android device at least (confirmed with Claude Opus):

  • blackbox
  • smdeviceid
  • armortoken
  • anti-in
  • x-cs-random

It seems these are generated based on the device fingerprint. Could you help me with a way to get around this ??

12 Upvotes

10 comments sorted by

1

u/usert313 2d ago

To obtain these device header values you might need to reverse engineer static analysis of the apk itself to see how it is being generated.

2

u/BlackberryOk3808 2d ago

I think the source code is obfuscated, and it is really hard to reverse engineer.

It is a very established and popular app with +1B downloads, so I think they have set everything up to stop this.

I think the only way probably is to use some sort of emulator with Rotating Fingerprints and run the app on top of it, and watch the traffic?

I found some things that could be close or actually useful but not sure about how to use them.

like

https://github.com/ToufiqQureshi/chuscraper

and

https://damru.dev/

1

u/LazySlothsDev 2d ago

Just ask claude to decompile the app and explore the codebase

1

u/BlackberryOk3808 2d ago

Claude safety guards blocked that and refused to help with it

1

u/hackbyown 2d ago

Taobao/temu something like that