Skip to main content

URL Manipulations that is widely used

Project description

URL Tricks (Python Package)

Tricks that can be done with urls of popular sites. Currently, under development.

Examples of How To Use

Google

Google Drive Downloadable URL

# Gives a downloadable url of a shared url in Google Drive

from url_tricks import GoogleUrlTricks
gut = GoogleUrlTricks()
gut.downloadable_drive_url("https://drive.google.com/file/d/<some_code_from_google_drive>/view?usp=sharing"

Google Drive Web Viewer URL

# Gives a web viewer url of a shared url in Google Drive

from url_tricks import GoogleUrlTricks
gut = GoogleUrlTricks()
gut.web_viewer_drive_url("https://drive.google.com/file/d/<some_code_from_google_drive>/view?usp=sharing"

Google Docs Previewable URL

# Gives a previewable url of a shared url in Google Docs

from url_tricks import GoogleUrlTricks
gut = GoogleUrlTricks()
gut.previewable_docs_url("https://docs.google.com/document/d/<some_code_from_google_docs>/edit")

Google Docs Templatable URL

# Gives a templatable url of a shared url in Google Docs

from url_tricks import GoogleUrlTricks
gut = GoogleUrlTricks()
gut.templatable_docs_url("https://docs.google.com/document/d/<some_code_from_google_docs>/edit")

Google Docs Exportable URL

# Gives a exportable url of a shared url in Google Docs / Google Sheets

from url_tricks import GoogleUrlTricks
gut = GoogleUrlTricks()

# Some possible values for "export_type" is "pdf", "odt" and "docx"
# exportable_sheets_url would do the same functionality
gut.exportable_docs_url("https://docs.google.com/document/d/<some_code_from_google_docs>/edit", "odt")

Developer

Name: Banura Randika Perera
Linkedin: randika-banura
Email: randika.banura@gamil.com
Bsc (Hons) Information Technology specialized in Software Engineering (SLIIT)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

url_tricks-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

url_tricks-0.0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file url_tricks-0.0.2.tar.gz.

File metadata

  • Download URL: url_tricks-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for url_tricks-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ef05b2e3532a8178c5d742ca493da298a972318bc436f43db5c5593b370fce92
MD5 c9571178a093d542518c0c3e6e318cca
BLAKE2b-256 6c57ac9263a3f5b036ad2676dc67cff9fe2cc3a1d7e605b879b53f8ae26dd383

See more details on using hashes here.

File details

Details for the file url_tricks-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: url_tricks-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for url_tricks-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a1f409ebda1b9861051c7ba91a90f1b67f940c5e7f427994bfae363de4ea46
MD5 3ef894dce7a27a0a56159f201cc6dfc4
BLAKE2b-256 932f8517fd1893d40bcdf357d973df8f30c52d4e91593ca60f562271b3785a8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page