Coder Social home page Coder Social logo

Comments (16)

cvoges12 avatar cvoges12 commented on June 29, 2024 1

@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.

from obtainium.

ImranR98 avatar ImranR98 commented on June 29, 2024

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

from obtainium.

foxjaw avatar foxjaw commented on June 29, 2024

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.

from obtainium.

ImranR98 avatar ImranR98 commented on June 29, 2024

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.

from obtainium.

foxjaw avatar foxjaw commented on June 29, 2024

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

from obtainium.

ImranR98 avatar ImranR98 commented on June 29, 2024

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.

from obtainium.

ImranR98 avatar ImranR98 commented on June 29, 2024

@cvoges12 no idea

from obtainium.

foxjaw avatar foxjaw commented on June 29, 2024

@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

from obtainium.

cvoges12 avatar cvoges12 commented on June 29, 2024

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.

from obtainium.

cvoges12 avatar cvoges12 commented on June 29, 2024

@ImranR98 What do you think?

from obtainium.

ImranR98 avatar ImranR98 commented on June 29, 2024

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

from obtainium.

foxjaw avatar foxjaw commented on June 29, 2024

@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

from obtainium.

jollySleeper avatar jollySleeper commented on June 29, 2024

@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

from obtainium.

ImranR98 avatar ImranR98 commented on June 29, 2024

https://github.com/ImranR98/Obtainium/releases/tag/v0.14.38-beta

from obtainium.

foxjaw avatar foxjaw commented on June 29, 2024

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.

from obtainium.

jollySleeper avatar jollySleeper commented on June 29, 2024

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

from obtainium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.