Jerrybuilt data exchange through Google Docs - server
Project description
Jerrybuilt data exchange through Google Docs - server
Tested against Windows 10 / Python 3.10 / Anaconda
pip install severgdocs
Updates the text content in a Google Docs document using Selenium and encrypts the new text.
This function automates the process of updating the content of a Google Docs document. It uses
Selenium to interact with the document, including navigating through iframes and updating the
text content. The updated text is encrypted using the provided password.
Args:
text (str): The new text content to be added or updated.
password (str): The password used for encryption.
doclink (str): The URL of the Google Docs document.
**kwargs: Additional keyword arguments for configuring the Chrome WebDriver.
Returns:
str: The updated and encrypted text content of the Google Docs document.
Raises:
Any exceptions raised during the Selenium interaction with the document.
Example:
# this module
from severgdocs import update_text
nt = update_text(
text="babudada",
password="bibidudu",
doclink="https://docs.google.com/document/d/xxxx/edit",
)
print(nt)
# client 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
severgdocs-0.11.tar.gz
(21.6 kB
view details)
Built Distribution
severgdocs-0.11-py3-none-any.whl
(22.5 kB
view details)
File details
Details for the file severgdocs-0.11.tar.gz
.
File metadata
- Download URL: severgdocs-0.11.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc40ea6c78812b8e5938c47d6e8cbde5508bc8ee32bd68affd11f6b1d5af5ad |
|
MD5 | 65b124162202d8ebbd9f26794b9731d0 |
|
BLAKE2b-256 | ddfbe920c43c42f3f7a6e1c34dc28fff31e6e9e8720627fea9af54fef4aa3e9f |
File details
Details for the file severgdocs-0.11-py3-none-any.whl
.
File metadata
- Download URL: severgdocs-0.11-py3-none-any.whl
- Upload date:
- Size: 22.5 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 | f1d314e6e5aca7ff71358c2e84d5904fe4dac69e801a26c36464c4bd54568ca5 |
|
MD5 | 8bba07dd3fc9d60fed9181ed9dcd6f95 |
|
BLAKE2b-256 | 3d29c8d1383f986f16ebf26250d0665c96c8795e180590d3e82ea836f49d54d3 |