Fetching binary builds of a specific package using the HTTP API
Hi!
The page https:/
What's the most efficient sequence of HTTP requests I can send to the Launchpad API to obtain an equivalent file list? More concretely, given a package name, how can I get the list(s) of downloadable files for that package, for all distributions?
I presume I'll need to send discrete requests to compute what distributions are available and probably execute several other intermediate requests too.
I don't know (or like) python (it reads like line noise to me - no idea why...!) so would have no idea where to start with launchpadlib. If someone can give an idea what sorts of launchpadlib API calls I'd need to execute I could figure out the HTTP requests from there.
---
Explanation/
It seems that Ubuntu maintains the only 32-bit builds of Chromium with debugging symbols, so I periodically fetch the latest version from Launchpad and fiddle with it to get it running on my Slackware installation. I've been doing this since Google stopped 32-bit builds, and can report that everything actually works with zero shared library/etc hitches! (*Fingers crossed*... I can always fallback to Slackware's debug-less 32-bit Chromium build in an emergency, and I'm seriously looking at Firefox nowadays too, but I digress.)
But. Navigating Launchpad, getting the files downloaded, and then getting the debug symbols into the right place so gcc could find them all took several days to get working last time I updated, so I've been putting updating off for months.
Yesterday I (finally) decided to make the effort to move off Chromium 57, and I figured the best way would be to figure out the Launchpad API so I could script/automate the process and make it easier to update more frequently in future.
Unfortunately, I'm struggling (a LOT) to understand the Launchpad HTTP API. I understand very few people use it directly, but trying to use launchpadlib would just make everything exponentially trickier as I find python's syntax and grammar distracting/
My biggest problem is not knowing where to find relevant documentation. I find myself repeatedly landing at https:/
I previously used the https:/
It seems the Launchpad API doesn't just confound me:
https:/
Also, a preliminary web search to see if there were any breadcrumbs I could follow led me to https:/
I wanted the advantage of being able to use the API and have the script not randomly break. I'm very seriously considering just giving up and doing HTML scraping like the script linked immediately above.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- David Lindsay
- Solved:
- Last query:
- Last reply: