-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Web Scraping to Enable AuroraStore Downloads (Through the GitLab Source) #854
Comments
Although the source is GitLab, the APKs are actually hosted on auroraoss.com. It looks like they've added some CloudFlare protection to prevent web scraping. It is probably possible to bypass, but no combination of headers I tried seems to work. This is not exactly a bug in Obtainium since the GitLab Source does still work fine. |
For some reason the following But setting the exact same user agent in the Flutter HTTP client doesn't work. |
Kinda like a random idea but did you check if your http library does inject some arbitrary headers? May led to some nasty surprises |
Only if you don't specify headers yourself, which I did |
Hmm, interesting. Co when you catch request from Flutter and from curl, they are the same? Aren't here some different library for HTTP requests for Dart? |
I don't know if they're exactly the same, but the host, user-agent, and accept headers are. Yeah I could try a different library. |
Just realized this is a duplicate of #709 (the only difference being that this one goes through GitLab - the actual problem is with the Aurora site). |
There occur issues if a gitlab project refers in its release data to external hosted .apk file. In some cases (e.g. Aurora Store) download is not possible because cloudflare protection gives "forbidden" error. The referer header seems to pacify this cloudflare protection. Tested with Android 14 in an AVD emulator. Related to: ImranR98#1397, ImranR98#1389, ImranR98#1384, ImranR98#1382, ImranR98#1381, ImranR98#1380, ImranR98#1359, ImranR98#854, ImranR98#785, ImranR98#697
Hello @luciobortoletto , |
Prerequisites
My request is not part of an existing issue.
Describe the bug
When I try to install AuroraStore (https://gitlab.com/AuroraOSS/AuroraStore) It gives me a Forbidden error.
To Reproduce
Steps to reproduce the behavior:
Screenshots and Logs
`2023-09-04 13:19:53.288: info: This is the first ever run of Obtainium.
2023-09-04 13:19:53.289: info: Update interval was set to 360 (reason: last check was 1970-01-01 01:00:00.000).
2023-09-04 13:19:59.665: info: Update interval was set to 60 (reason: setting changed).
2023-09-04 13:42:02.324: error: Forbidden
2023-09-04 13:42:07.747: error: Forbidden
2023-09-04 13:42:18.612: info: Update interval was set to 60 (reason: last check was 1970-01-01 01:00:00.000).
2023-09-04 13:42:29.473: error: Forbidden
2023-09-04 13:42:48.557: error: Importato App
2023-09-04 13:43:19.330: error: Forbidden
2023-09-04 13:45:33.368: error: Forbidden
2023-09-04 13:46:18.926: error: Importato App
2023-09-04 13:46:27.365: error: Forbidden: [828490272]
2023-09-04 13:47:42.816: error: Forbidden: [828490272]
2023-09-04 13:47:47.889: info: Update interval was set to 60 (reason: last check was 1970-01-01 01:00:00.000).
2023-09-04 13:47:52.680: error: Forbidden: [828490272]
2023-09-04 13:48:44.771: error: Servono credenziali aggiuntive (in Impostazioni)
2023-09-04 13:53:23.525: error: Forbidden
2023-09-04 13:53:45.838: error: Forbidden
2023-09-04 13:54:05.636: error: Forbidden
2023-09-04 13:54:08.959: error: Forbidden
2023-09-04 13:54:10.497: error: Forbidden
2023-09-04 13:54:17.139: error: Forbidden
2023-09-04 13:54:27.770: error: Importato App
2023-09-04 13:54:35.446: error: Forbidden: [828490272]
2023-09-04 13:56:23.219: error: Forbidden
2023-09-04 13:57:36.673: error: Forbidden
2023-09-04 13:58:06.099: error: Forbidden
2023-09-04 14:04:10.621: info: Update interval was set to 60 (reason: last check was 1970-01-01 01:00:00.000).
2023-09-04 14:04:22.833: error: Forbidden
2023-09-04 14:05:00.336: error: Importato App
2023-09-04 14:05:03.667: error: Forbidden: [828490272]
2023-09-04 14:05:16.646: error: Forbidden: [828490272]
2023-09-04 14:05:19.830: error: Forbidden: [828490272]
2023-09-04 14:10:11.430: error: Forbidden: [828490272]
2023-09-04 14:11:08.079: info: Update interval was set to 60 (reason: last check was 1970-01-01 01:00:00.000).`
Please complete the following information:
Additional context
This phone Is new and on my old phone it has never happened.
The text was updated successfully, but these errors were encountered: