Jerrybuilt data exchange through Google Docs - client
Project description
Jerrybuilt data exchange through Google Docs - client
Tested against Windows 10 / Python 3.10 / Anaconda
pip install clientgdocs
This module provides a function for extracting text content from a Google Docs link
protected by a password. It uses BeautifulSoup, requests, and other libraries to
retrieve and decrypt the content.
Functions:
get_text_from_google_docs(doclink, password, timeout=30):
Retrieves and decrypts the text content from a Google Docs link protected by a password.
Parameters:
doclink (str): The URL of the Google Docs document.
password (str): The password used to decrypt the document.
timeout (int, optional): The maximum time (in seconds) to wait for the document to load. Defaults to 30 seconds.
Returns:
str: The decrypted text content of the Google Docs document.
Example:
# server module
from severgdocs import update_text
nt = update_text(
text="babudada",
password="bibidudu",
doclink="https://docs.google.com/document/d/xxxx/edit",
)
print(nt)
# this module
from clientgdocs import get_text_from_google_docs
doclink = "https://docs.google.com/document/d/xxxx/edit"
password = "bibidudu"
text = get_text_from_google_docs(doclink, password, timeout=30)
print(text)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clientgdocs-0.11.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file clientgdocs-0.11.tar.gz
.
File metadata
- Download URL: clientgdocs-0.11.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f70cd7897fd9c228c400ed4843b971f3b881003784d73a0860cde9decf13ea4a |
|
MD5 | b7280f7db123537ae4f3ab556e44f0b9 |
|
BLAKE2b-256 | 50c37f5764890ab0fe5f1aa162f0e669b8020f816015d50a3fe4a81bd6cd0fad |
File details
Details for the file clientgdocs-0.11-py3-none-any.whl
.
File metadata
- Download URL: clientgdocs-0.11-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d67b3175854bd9f0232182f2931035cd4465f2f105f63046fe39a0f58bace23c |
|
MD5 | eb9571e5d965f6b25fef02d59b6d605a |
|
BLAKE2b-256 | 0401b8cbaae0c9167df3f64020f0d1486c37db024f5b9bd57bcb9d15af7c5d3b |