Solved "latest" download link?

Discussion in 'Plugin Development' started by meguy26, May 11, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    meguy26

    Do Bukkit Plugins have a single, unchanging direct download URL that downloads the latest version? something like the link spigot posted for build tools.
     
  2. @meguy26
    They don't have a single download link, but you cán go to the plugin's file website and by parsing the html you can get the latest file available and using that the right url.
     
  3. Offline

    RawCode

    jenkins server.
     
  4. Offline

    meguy26

    @RawCode
    But does this work for every bukkit plugin?
     
  5. Offline

    NathanWolf

    No, it doesn't at all- and wouldn't be consistent from plugin to plugin, either. I assume you're looking for a simple URL you can get to from a plugin name/slug.
     
  6. Offline

    nbrandwine

    -removed-
     
    Last edited: May 11, 2015
  7. Offline

    NathanWolf

    That's not at all what the OP asked for, and is most certainly against the rules and (depending on whom you ask), the law. Probably best to remove that.
     
  8. Offline

    nbrandwine

    :eek: whoops
    my bad :oops:
     
  9. Offline

    meguy26

    @NathanWolf
    That is exactly what I am looking for...


    @megamichiel
    How would I get the HTML text from a website? And, without spoonfeeding, how would i setup a parser for it (I do not want to use other libraries).
     
  10. Offline

    NathanWolf

    How do you know when you can't see what it was? :eek:

    You said you were looking for direct download links to latest version of Bukkit plugins. He provided a link to a site hosting downloads of Craftbukkit.

    Anyway...

    You don't need external libraries to parse HTML, but it will make it easier.

    This is a good place start: Parse Web Site HTML from Java (stackoverflow)
     
  11. Offline

    meguy26

    @NathanWolf
    your first post was exactly what I was looking for:
     
  12. Offline

    NathanWolf

  13. Offline

    meguy26

    @NathanWolf
    Oooh the api looks like it would work, but is their a way to easily obtain the project id (32228 in your example)?

    EDIT:
    LOL, never mind, shoulda read more of the docs first...
     
    NathanWolf likes this.
Thread Status:
Not open for further replies.

Share This Page