{"id":19900025,"url":"https://github.com/scrapy-plugins/scrapy-feedexporter-google-sheets","last_synced_at":"2026-06-03T20:31:18.002Z","repository":{"id":162188111,"uuid":"626397001","full_name":"scrapy-plugins/scrapy-feedexporter-google-sheets","owner":"scrapy-plugins","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-15T13:55:44.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-07T01:59:36.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scrapy-plugins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-11T11:43:15.000Z","updated_at":"2025-12-29T02:36:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"640609ad-3ec8-4bb4-8dae-993e978c4427","html_url":"https://github.com/scrapy-plugins/scrapy-feedexporter-google-sheets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scrapy-plugins/scrapy-feedexporter-google-sheets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy-plugins%2Fscrapy-feedexporter-google-sheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy-plugins%2Fscrapy-feedexporter-google-sheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy-plugins%2Fscrapy-feedexporter-google-sheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy-plugins%2Fscrapy-feedexporter-google-sheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scrapy-plugins","download_url":"https://codeload.github.com/scrapy-plugins/scrapy-feedexporter-google-sheets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrapy-plugins%2Fscrapy-feedexporter-google-sheets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33878990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T20:10:53.182Z","updated_at":"2026-06-03T20:31:17.981Z","avatar_url":"https://github.com/scrapy-plugins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoogleSheets Exporter for Scrapy\n[Scrapy feed export storage backend](https://doc.scrapy.org/en/latest/topics/feed-exports.html#storage-backends) for GoogleSheets.\n\n## Requirements\n-  Python 3.8+\n\n## Installation\nInstall the Google Sheets Exporter for Scrapy via pip:\n\n```bash\npip install git+https://github.com/scrapy-plugins/scrapy-feedexporter-google-sheets\n```\n\n## Usage\n\nFollow these steps to use the Google Sheets Exporter with Scrapy:\n\n* Add this storage backend to the Scrapy settings [FEED_STORAGES](https://docs.scrapy.org/en/latest/topics/feed-exports.html#std-setting-FEED_STORAGES) dict, as follows:\n\n  ```python\n  # settings.py\n  FEED_STORAGES = {'gsheets': 'scrapy_google_sheets_exporter.gsheets_exporter.GoogleSheetsFeedStorage'}\n  ```\n\n* Configure [authentication](https://developers.google.com/identity/protocols/oauth2/service-account) by providing Google service account credentials as a dictionary in the Scrapy settings `GOOGLE_CREDENTIALS`.\n  \n  For example:\n  ```python\n  # settings.py\n  GOOGLE_CREDENTIALS = { \n        \"type\": \"service_account\", \n        \"project_id\": \"project_id here\", \n        \"private_key_id\": \"private_key_id here\", \n        \"private_key\": \"private_key here\", \n        \"client_email\": \"client@email.iam.gserviceaccount.com\", \n        \"client_id\": \"client_id here\", \n        \"auth_uri\": \"auth_uri here\", \n        \"token_uri\": \"token_uri here\", \n        \"auth_provider_x509_cert_url\": \"auth_provider_x509_cert_url here\", \n        \"client_x509_cert_url\": \"client_x509_cert_url here\" \n  }\n  ```\n* Share the Google Sheet file with the service account's email (available in GOOGLE_CREDENTIALS as `client_email`) and give it `Editor` access.\n\n* Configure the Scrapy settings [FEEDS](https://docs.scrapy.org/en/latest/topics/feed-exports.html#feeds) by passing the Google Sheet file URI where the feed should be exported.\n  \n    For example:\n    ```python\n    # settings.py\n    FEEDS = {\n        \"gsheets://docs.google.com/spreadsheets/d/{spreadsheet_key}/edit#gid={worksheet_id}\": {\n            \"format\": \"csv\",  # mandatory\n            \"overwrite\": True\n        }\n    }\n    ```\n  - You can get the `spreadsheet_key` and `worksheet_id` from the URL of the shared Google Sheet file\n    - e.g: `https://docs.google.com/spreadsheets/d/1fWJgq5yuOdeN3YnkBZiTD0VhB1MLzBNomz0s9YwBREo/edit#gid=1261678709`\n  - IMPORTANT: If the worksheet id is not provided (i.e.: there is no `/edit#gid={worksheet_id}` in the end of the URL), this exporter will export data to the **first worksheet** as default.\n    \n## [Feed Options](https://docs.scrapy.org/en/latest/topics/feed-exports.html#feed-options)\n- This feed exporter only supports `csv` format. This setting is mandatory, there is no fallback value.\n- The `overwrite` feed option (default = False) determines whether data should be appended to the existing rows in the worksheet or overwrite the data in the worksheet completely, when set to True.\n- If you are using this exporter in append mode (i.e., overwrite = False), please make sure that the fields to be exported match the data already present in the worksheet. This can be achieved by passing the feed option `fields` or configuring the [FEED_EXPORT_FIELDS](https://docs.scrapy.org/en/1.7/topics/feed-exports.html#std:setting-FEED_EXPORT_FIELDS) setting.  \n- If you prefer not to export the CSV headers to the worksheet (for example, when using the exporter in append mode), please include the following feed option:\n  -`\"item_export_kwargs\": {\"include_headers_line\": False}`\n- This exporter does not support the `batch_item_count` feed option. Instead, please use `batch_size` (number of items in each batch) if you want to insert rows in batches into the spreadsheet. Please note that the batch will be capped at a size of 2 MB, in line with Google's recommendation.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrapy-plugins%2Fscrapy-feedexporter-google-sheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrapy-plugins%2Fscrapy-feedexporter-google-sheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrapy-plugins%2Fscrapy-feedexporter-google-sheets/lists"}