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.10.tar.gz
(8.5 kB
view hashes)
Built Distribution
clientgdocs-0.10-py3-none-any.whl
(10.0 kB
view hashes)
Close
Hashes for clientgdocs-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8309c03cc748541fad3e06312205f3390864d365fe4b34a7d96616cd9a52455 |
|
MD5 | 956abb5e4d7e4d04329019692588c623 |
|
BLAKE2b-256 | 9012da9dd4797fc54928f92a383cb311798babed03495e30d8b0bed5d860b7ad |