# Basic Automation with command-line

***

## Basic Run

This enables you to choose arguments using the prompt menus.

```
ofscraper
```

{% content-ref url="/pages/7pMld6Maj7q98MjZ1g5v" %}
[Downloading Content](/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/basic-actions/selecting-posts.md)
{% endcontent-ref %}

{% content-ref url="/pages/2s5RQDESInkDz9Y3zVWH" %}
[Model Filtering/Sorting](/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/model-selection-sorting.md)
{% endcontent-ref %}

{% content-ref url="/pages/zgsp4YlpK6fhVEQPv9lb" %}
[Liking/Unliking Post](/of-scraper/using-the-scraper/batch-scraping-and-bot-actions/basic-actions/liking-unliking-post.md)
{% endcontent-ref %}

***

## Performing action(s)

{% hint style="info" %}
**--post is a short hand used for all actions unless an --like-area or --download-area command is passed**
{% endhint %}

You can combine these actions together

* likes or unlike (only 1 because liking and unliking all posts doesn't make sense)
* combine the previous with download

This command will download all wall posts for the selected model and simultaneously like all the posts

```
 ofscraper --posts all --action like,download
```

This command will only download

```
ofscraper --posts all --action download
```

### Selecting different areas

You can use&#x20;

* like-area specifically for like/unlike action
* download-area specifically for the download action

This command will download all post, but only like pinned

```
 ofscraper --download-area all --like-area pinned --action like,download
```

or&#x20;

```
 ofscraper --posts all --like-area pinned --action like,download
```

***

## Bypass all prompts

{% hint style="info" %}
**You must pick timeline,pinned, or archived to bypass the like area prompt when doing action**&#x20;

**like or unlike**
{% endhint %}

To bypass prompts

* Select at least one scraping method
* Provide a username(s)
* Providing the areas to scan

```
 ofscraper --posts all --username ALL --action like,download
```

***

## Running command in the background

For daemon mode to function, you must select at least one scraping method

{% hint style="info" %}
&#x20;**In daemon mode, if the --username argument isn't provided, it will prompt you to pick a username only once**
{% endhint %}

{% hint style="info" %}
**In daemon mode, if the --post or --scrape-paid argument isn't provided, it will prompt you to  them only once**
{% endhint %}

```
 ofscraper --daemon 10 --posts all --action like,download
```

The script will operate at least every 10 minutes. If a run extends beyond 10 minutes, the subsequent run begins immediately after the prior one concludes.

***

## Modifications to Filename

### Toggle letter count for textlength

By default, 'textlength' corresponds to the maximum number of words you desire. To modify this to represent the maximum number of letters, use the '--letter-count' argument.

```
ofscraper --letter-count
```

***

### Output Options

{% content-ref url="/pages/TfW1Q9D7to3YVSdHXRnn" %}
[Controlling Output/Logs](/of-scraper/getting-started/controlling-output.md)
{% endcontent-ref %}


---

# 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.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.
