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.10.tar.gz
(21.5 kB
view hashes)
Built Distribution
severgdocs-0.10-py3-none-any.whl
(22.4 kB
view hashes)
Close
Hashes for severgdocs-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5976e7308dead9da78298759ba794a021b2810ce02a45faa7be98b101cb2c79e |
|
MD5 | c3930e020a623c4553f97f3acd6741d3 |
|
BLAKE2b-256 | 14bd71b2a0ab88f142f5d3f46541f3915902e6b19dcc645de26fb881942b1046 |