Getting tired of downloading Google Spreadsheets one by one from the browser ?
Project description
Snapsheets
Getting tired of downloading Google Spreadsheets one by one from the browser ?
This package enables to wget Google Spreadsheets without login. (Spreadsheets should be shared with public link)
Where to get it
$ pip3 install snapsheets
Usage
$ snapsheets -h
usage: snapsheets [-h] [--config CONFIG] [--url URL] [--debug] [--version]
options:
-h, --help show this help message and exit
--config CONFIG set config directory (default: ./config/)
--url URL copy and paste an URL of the Google spreadsheet
--debug show more messages
--version show program's version number and exit
- Use
--urloption to download single spreadsheet. - Use
--configoption to download multiple spreadsheets.- create a directory for config files.
- create a config file in TOML format.
Documents
Examples
with --url option
$ snapsheets --url="https://docs.google.com/spreadsheets/d/1NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM/edit#gid=0"
2022-06-09T08:09:30 | WARNING | Directory varlogs not found. Switch to current directory.
2022-06-09T08:09:31 | SUCCESS | 🤖 Downloaded snapd/snapsheet.xlsx
2022-06-09T08:09:31 | SUCCESS | 🚀 Renamed to snapd/20220609T080931_snapsheet.xlsx
- Downloaded file is temporarily named as
snapsheet.xlsx, then renamed with current-time based prefix.
with --config option
$ snapsheets --config="config/"
2022-06-09T08:05:47 | WARNING | Directory varlogs not found. Switch to current directory.
2022-06-09T08:05:48 | SUCCESS | 🤖 Downloaded snapd/snapsheet.xlsx
2022-06-09T08:05:48 | SUCCESS | 🚀 Renamed to snapd/2022_toml_sample1.xlsx
2022-06-09T08:05:49 | SUCCESS | 🤖 Downloaded snapd/snapsheet.xlsx
2022-06-09T08:05:49 | SUCCESS | 🚀 Renamed to snapd/20220609_toml_sample3.csv
- Make
./config/directory and place your TOML files.- If
./config/does not exist, it will search from. (current directory).
- If
- Downloaded files are saved to
./snapd/directory- If
./snapd/does not exit, it will be saved in. (current directory).
- If
with module import
>>> from snapsheets import Sheet
>>> url = "https://docs.google.com/spreadsheets/d/1NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM/edit#gid=0"
>>> sheet = Sheet(url=url, desc="Get Sample Sheet")
>>> sheet.snapshot()
📣 Get Sample Sheet
🤖 Downloaded snapd/snapsheet.xlsx
🚀 Renamed to snapd/20220602T225044_snapsheet.xlsx
Other requirements
- Install
wgetif your system doesn't have them - Make your spreadsheet available with shared link (OK with read-only)
PyPI package
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
snapsheets-0.6.1.tar.gz
(13.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snapsheets-0.6.1.tar.gz.
File metadata
- Download URL: snapsheets-0.6.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.13 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f75b327c8f114aee5a4c6fe7e681732a61ae5b6ba72e472ac36f7d46dd038b0
|
|
| MD5 |
7d9d07a5f46aed69f898cac67ff7069f
|
|
| BLAKE2b-256 |
a99227944cdf548bcd94883752184a62ce3fdc279888745ec58d4898c62faec0
|
File details
Details for the file snapsheets-0.6.1-py3-none-any.whl.
File metadata
- Download URL: snapsheets-0.6.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.13 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4a0eec0e095dbb3cecd0cc5ff24ed6f71befbe70c9dd2c31414696df8fdc86c
|
|
| MD5 |
5c67e33e5b5c64dd9ff20bbf1fd96a41
|
|
| BLAKE2b-256 |
c4f58bfdf03883c24e9622204a48f97f073efe8385520bc7d4497d23def8e603
|