# Rank any collections in shell with OpenSea API

For a sample of how to use the existing Opensea API to fetch the collection and token metadata and to funnel that into the scoring library, checkout `scripts/score_real_collections`.           In shell run:

```
python -m scripts.score_real_collections
```

This may also be used to generate json or csv outputs of OpenRarity scoring and ranks for any number of collections

```
python -m scripts.score_real_collections boredapeyachtclub proof-moonbirds
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://openrarity.gitbook.io/developers/quick-guides/rank-any-collections-in-shell-with-opensea-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
