> For the complete documentation index, see [llms.txt](https://870167019.gitbook.io/blockchainspider/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://870167019.gitbook.io/blockchainspider/guides/collect-label-data.md).

# Collect label data

## The OFAC

The U.S. Department of the Treasury was established in 1789. Handle the financial affairs of the United States Federation, whose Office of Foreign Assets Control (OFAC) publishes a Specially Designated Nationals (SDN) list containing information of several entities in the blockchain.

In this section, we will demonstrate how to collect labeled addresses in the OFAC sanctions list!

## Start a crawl task

Run this command as follow:

```
scrapy crawl labels.ofac
```

You can find the label data on `./data/labels.ofac`, each row of this file is a JSON object just like this:

```json
{
    "net":"ETH",
    "label":"Entity",
    "info":{
        "uid":"30518",
        "address":"0x72a5843cc08275C8171E582972Aa4fDa8C397B2A",
        "first_name":null,
        "last_name":"SECONDEYE SOLUTION",
        "identities":[
            {
                "id_type":"Email Address",
                "id_number":"support@secondeyesolution.com"
            },
            {
                "id_type":"Email Address",
                "id_number":"info@forwarderz.com"
            }, ...
        ]
    }
}
```

**Note**: Please indicate the source when using crawling labels.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://870167019.gitbook.io/blockchainspider/guides/collect-label-data.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.
