Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the readme is incorrect #2

Open
repoman1964 opened this issue Sep 30, 2024 · 0 comments
Open

the readme is incorrect #2

repoman1964 opened this issue Sep 30, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@repoman1964
Copy link

repoman1964 commented Sep 30, 2024

this looks like an environment variable...

_Configure authentication with service account like following:

For example,

GDRIVE_SERVICE_ACCOUNT_CREDENTIALS_JSON = '{ "type": "service_account", "project_id": "project_id here", "private_key_id": "private_key_id here", "private_key": "private_key here", "client_email": "client_email here", "client_id": "client_id here", "auth_uri": "auth_uri here", "token_uri": "token_uri here", "auth_provider_x509_cert_url": "auth_provider_x509_cert_url here", "client_x509_cert_url": "client_x509_cert_url here" }'_

this is what gdrive_exporter.py is looking for...

@classmethod
   def from_crawler(cls, crawler, uri, *, feed_options=None):
       return cls(
           uri,
           crawler.settings.get("**GDRIVE_SERVICE_ACCOUNT_CREDENTIALS**"),
           feed_options=feed_options,
       )

@Gallaecio Gallaecio added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants