# Model Filtering/Sorting

***

## Filter/Sort List By Price

{% content-ref url="/pages/ZOqZBQ5ONPiYEGCxQCzO" %}
[Price Filtering/Sort](/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/model-selection-sorting/price-filtering-sort.md)
{% endcontent-ref %}

***

## Selecting Specific models from command-line

You can provide a comma-separated list indicating the models you wish to scrape

```
 ofscraper --username name1,name
```

#### Selecting all users

```
 ofscraper --username ALL
```

'ALL' is influenced by filters, and it  is case-sensitive.

***

## Filtering username list

The following settings can be dynamically modified if using prompts.

{% content-ref url="/pages/kwRR4zDyrEqhkXft0Gh6" %}
[Using Prompts](/of-scraper/using-the-scraper/using-prompts.md)
{% endcontent-ref %}

Furthermore, this adjustment doesn't alter the retrieval of usernames; it solely impacts the subset of usernames that are displayed<br>

> \
> If you wish to retrieve specific usernames, set up a collection on OnlyFans, then utilize the '--userlist' or '--blacklist' arguments accordingly

### Version >2.1

Now, '--username' takes precedence over any filters. Consequently, only the selected '--usernames' will be utilized, with the exception of 'ALL', which can still be filtered.

### Restrict by account type

This will limit the program to exclusively interact with and display free accounts

```
 ofscraper --current-price free --username ALL
```

### Restrict by subscription status

This demonstrates scraping messages from subscriptions that have expired

```
ofscraper --active-subscription --posts messages --username ALL --action download
```

### Restrict by renewal status

You can utilize this option to exclusively scrape active accounts, considering the renewal status of their subscriptions.

```
ofscraper  --renewal-off --username ALL
```

***

### Combining filters

Filters are commonly employed to scrape accounts that are scheduled for expiration.

```
ofscraper  --current-price paid --active-subscription --renewal-off --username ALL
```

Alternatively, you might choose to scrape only free accounts with active subscriptions

```
ofscraper  --current-price free --active-subscription --username ALL
```

### Exclude specific models

Please note that this takes precedence over '--username', including  '--username ALL'

```
ofscraper --excluded-username username
```

### Filter by regular price

```
ofscraper  --regular-price paid 
```

{% content-ref url="/pages/ZOqZBQ5ONPiYEGCxQCzO" %}
[Price Filtering/Sort](/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/model-selection-sorting/price-filtering-sort.md)
{% endcontent-ref %}

***

### Advanced filtering

{% content-ref url="/pages/OemtRodVsiTbZ6YpsuzG" %}
[User List Filter Options](/of-scraper/command-reference/shared-options/scrape-metadata-options/account-filter-args.md)
{% endcontent-ref %}

***

## Sorting username list

The default setting is to sort alphabetically by name in ascending order

> Sorting effects the order of scraping, and not just the order that they appear in the prompt menu

### sort by account expiring date

```
ofscraper --sort expiring

```

### sort by account subscribed date

```
ofscraper --sort subscribed

```

#### sort by account name

```
ofscraper --sort name

```

### sort by promotional prices

```
ofscraper --sort promo-price

```

{% content-ref url="/pages/ZOqZBQ5ONPiYEGCxQCzO" %}
[Price Filtering/Sort](/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/model-selection-sorting/price-filtering-sort.md)
{% endcontent-ref %}

### desc option

By default, the sorting is in ascending order.&#x20;

Utilizing this changes the sorting to descending order.

```
ofscraper --sort price --desc

```

***

## Retrieving specific list

This option enables switching from the primary list of OnlyFans accounts to a previously designated collection of accounts.

```
ofscraper --userlist "tiktok"
```

You have the ability to merge multiple lists

```
ofscraper --userlist "tiktok" --userlist "tiktok2"
```

***

## Blocking list of Names

Collections offer the functionality to block a list of names

```
ofscraper --blacklist "tiktok" 
```

> Please note that this takes precedence over the '--userlist' option and also 'ALL' parameter


---

# 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://of-scraper.gitbook.io/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/model-selection-sorting.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.
