Ask Your Question

Limit results from forge API

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

spuder gravatar image

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

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


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
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

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

bmurts gravatar image

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

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


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

Seen: 134 times

Last updated: Dec 26 '13