Skip to content
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

Get real author name for F-Droid #1076

Closed
foxjaw opened this issue Nov 7, 2023 · 16 comments
Closed

Get real author name for F-Droid #1076

foxjaw opened this issue Nov 7, 2023 · 16 comments
Labels
enhancement New feature or request

Comments

@foxjaw
Copy link

foxjaw commented Nov 7, 2023

Each & every F-Droid application entried says "by F-Droid Official". I know it's by F-Droid, but can you please use the Author Name of the app ? Just like how GitHub/Lab & other sources have their repo owners ?

I think the same goes with other F-Droid repos like IzzyOnDroid, etc. If it's an f-droid repo, please use the Author's name instead of the F-Droid Repo.

@foxjaw foxjaw added enhancement New feature or request to check Issue has not been reviewed labels Nov 7, 2023
@ImranR98
Copy link
Owner

ImranR98 commented Nov 7, 2023

The f-droid API doesn't return any author name. For example: https://f-droid.org/api/v1/packages/de.schildbach.wallet

So the only way to get this would be through web scraping which isn't worth it because it's error prone and would require a second web request

@ImranR98 ImranR98 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
@ImranR98 ImranR98 removed the to check Issue has not been reviewed label Nov 7, 2023
@foxjaw
Copy link
Author

foxjaw commented Nov 7, 2023

I would not think web scraping would be error prone. But it's upto you to implement it or not.
For ex, take droidify
view-source:https://f-droid.org/en/packages/com.looker.droidify/
Line 178 is just a plane one liner, which would be easy to scrape to.

I believe this is crucial for me. Caz the applist showing author would be much more beautiful & convenient information to look into.

@ImranR98
Copy link
Owner

ImranR98 commented Nov 7, 2023

Web scraping in general is unreliable because you will not be notified or warned of website changes. APIs are meant to be used programmatically so they are always going to be the same - whenever changes do need to be made, those changes will be made in a new version of the API, while the old version will continue to work or you will be given a warning in advance before it stops working.

@foxjaw
Copy link
Author

foxjaw commented Nov 7, 2023

Oh. I'm not a dev but, is this the documentation for it ?

@ImranR98
Copy link
Owner

ImranR98 commented Nov 7, 2023

No that's not the API documentation. That is the documentation for the file that developers are supposed to provide to F-droid when they submit their apps.

@midirhee12
Copy link

midirhee12 commented Nov 24, 2023

@ImranR98 How do other F-Droid apps get the Author name and other metadata then? I'm almost certain they don't use webscraping for this.

@ImranR98
Copy link
Owner

@cvoges12 no idea

@foxjaw
Copy link
Author

foxjaw commented Nov 25, 2023

@cvoges12 That's a point btw. I use droidify & can confirm. Follow up here:
https://github.com/orgs/Droid-ify/discussions/584
Here's the Index provided by F-Droid:
https://fdroid.org/repo/index-v1.json

@midirhee12
Copy link

Yeah, it isn't impossible. I see AuroraDroid and such doing this too. I guess the answer to how to do this is just less obvious. But I don't think that's a good reason to close the issue since that doesn't necessarily make the issue impossible. I could go ask the AuroraDroid devs or whatever if need be.

@midirhee12
Copy link

@ImranR98 What do you think?

@ImranR98
Copy link
Owner

Sure, hopefully there's some other API w more info

@foxjaw
Copy link
Author

foxjaw commented Nov 30, 2023

@ImranR98 Try https://gitlab.com/fdroid/fdroiddata/-/raw/master/metadata/<app-id>.yml
For example, https://gitlab.com/fdroid/fdroiddata/-/raw/master/metadata/com.stoutner.privacybrowser.standard.yml
The Author is Soren Stoutner.

Read more here

@jollySleeper
Copy link

jollySleeper commented Dec 8, 2023

@foxjaw I just created a Issue somewhat Related to this #1138

This discovery of yours could be great for automating tracking packages from source repos

@ImranR98 ImranR98 reopened this Dec 17, 2023
@ImranR98 ImranR98 added the TODO Issue to focus on for the next release label Dec 17, 2023
ImranR98 pushed a commit that referenced this issue Dec 17, 2023
ImranR98 added a commit that referenced this issue Dec 17, 2023
- Get real author name for F-Droid (#1076)
- Always add Track-only apps with random ID (#1138)
- Minor UI fix (#1162)
- Fix 'verify latest' option for GitHub (#1163)
@ImranR98
Copy link
Owner

@ImranR98 ImranR98 removed the TODO Issue to focus on for the next release label Dec 17, 2023
@foxjaw
Copy link
Author

foxjaw commented Dec 18, 2023

Tqvm. Now fdroid trackers look like how they supposed to be ! With their authors.
Although, couple apps still miss AuthorName as it seems that gitlab yml metadata file has it missing too
https://gitlab.com/fdroid/fdroiddata/-/raw/master/metadata/com.termux.yml
For the above app, you can check the source code metadata from the yml file & retrieve the AuthorName which is a github organization (termux).

And 3rd party F-Droid repos usually don't provide this metadata anyways.

@foxjaw foxjaw changed the title Prefer Author name instead of "F-Droid Official" Get real author name for F-Droid Dec 18, 2023
@jollySleeper
Copy link

Thanks @ImranR98 for this feature.

As far as I know this API will help in fetching the source repo too. So, can you add the source repo link for the particular app in App Detail Section of Obtanium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants