Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python Module for is.gd - v.gd <http://is.gd/apishorteningreference.php>
_ URL Shortener.
.. image:: https://circleci.com/gh/torre76/gd_shortener.svg?style=svg :target: https://circleci.com/gh/torre76/gd_shortener
GD Shortener allow Python software to access is.gd - v.gd <http://is.gd/apishorteningreference.php>
_ URL shortener service.
Using this module you could shorten an URL to a small one like Twitter does for its link.
This service is provided by is.gd - v.gd <http://is.gd/apishorteningreference.php>
_ and, thru the classes in this module, you could view stats on shortened URLs and obtain reverse lookup on URLs.
To install GD Shortener, run the following command::
pip install gdshortener
After install, to use GD Shortener is sufficient to import the package, choose the implementing class ISGDShortener
or VGDShortener
(it maps to is.gd or v.gd) and use the following code:
.. code-block:: python
import gdshortener
s = gdshortener.ISGDShortener()
print s.shorten('http://www.google.com')
If you want statistic usage on a URL use:
.. code-block:: python
print s.shorten(url = 'http://www.google.com', log_stat = True)
If you want a custom URL use:
.. code-block:: python
print s.shorten(url = 'http://www.google.com', custom_url = 'Pippus')
If you want to ignore SSL certificate (for older version of OpenSSL):
.. code-block:: python
print s.shorten(url = 'https://expired.badssl.com', verify_ssl = False)
If you have an already shortened URL and want a reverse lookup:
.. code-block:: python
print s.lookup('http://is.gd/Pippus')
GD Shortener is licensed under LGPL. See LICENSE.txt for details.
FAQs
A module that provides access to .gd URL Shortener
We found that gdshortener demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.