Ask Your Question
0

Limit results from forge API

asked 2013-12-25 11:22:54 -0500

spuder gravatar image

updated 2013-12-25 11:27:50 -0500

I'd like to query the puppet forge using a python script.

The API is documented here:

Additional information about my script can be found here:

How can I limit the number of results?

curl -L https://forge.puppetlabs.com/modules.json?q=gitlab

Update

The twitter api uses count=, I crossed my fingers hoping that the puppet forge would use the same syntax, but no joy. Any ideas?

    curl -L https://forge.puppetlabs.com/modules.json?q=gitlab&count=2
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-26 07:14:46 -0500

bmurts gravatar image

updated 2013-12-26 07:16:08 -0500

I do not believe this feature exists. It looks like your best option would be to submit a new bug report/enhancement request to have this feature reviewed/implemented.

The second option would be to force your script to do the limiting and only display 'x' number of results depending on your use-case. Granted this isn't ideal because you'd need to include additional logic to figure out what criteria is displayed vs what isn't displayed, but it is an option.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-25 11:22:54 -0500

Seen: 121 times

Last updated: Dec 26 '13