# Scraping a Google Doc

The website scraper is also able to see and scrape all of the text data from a Google Doc

**1. Introduction & Objective**

How to connect **Agent Supply** (a scraping/automation tool) to a **Google Doc** so that structured data can be pulled automatically from that document into Agent Supply’s system.

***

**2. Prepare Your Google Doc**

* Open the Google Doc you want to use (can be a table, list, etc.).
* Click **“Share”**, and under link settings, choose **“Anyone with the link can view”**.
  * This ensures Agent Supply can access the document without login issues.

***

**3. Modify the Google Doc URL**

* Copy the document link, which normally ends in something like:

  ```
  rubyCopiarEditarhttps://docs.google.com/spreadsheets/d/your-doc-id/edit#gid=0
  ```
* Replace the ending (`/edit#gid=0`) with:

  ```
  arduinoCopiarEditar/export?format=csv
  ```
* The new link should look like:

  ```
  perlCopiarEditarhttps://docs.google.com/spreadsheets/d/your-doc-id/export?format=csv
  ```

***

**4. Configure Agent Supply**

* Go to your **Agent Supply dashboard**.
* Create a new **data source** or **scraper agent**.
* Paste the modified Google Docs CSV link as the **data input URL**.

***

**5. Run the Agent**

* Activate the agent.
* Agent Supply fetches and parses the CSV from your Google Doc.
* You’ll see the structured data (rows and columns) in the results panel.

***

**6. Review & Export**

* Use Agent Supply’s interface to:
  * Preview data
  * Filter or transform it
  * Export it to other tools (e.g., CSV, Notion, Airtable, APIs)

***

#### 📝 Summary Table

| Step | Action                                        |
| ---- | --------------------------------------------- |
| 1    | Publicly share your Google Doc                |
| 2    | Modify the link to use `/export?format=csv`   |
| 3    | Add the link as a data source in Agent Supply |
| 4    | Run the agent to fetch the data               |
| 5    | View, use, or export the structured result    |


---

# 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://docs.agentsupply.ai/ai-features/knowledge-base-explain/scrape-websites/scraping-a-google-doc.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.
