Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

url-tricks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-tricks

URL Manipulations that is widely used

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

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)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc