:electric_plug: Generating short urls with python has never been easier

Overview
Issues
  • i get bad handshake: Error when i try to run it

    i get bad handshake: Error when i try to run it

    <type 'exceptions.Exception'>

    bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)

    Am running on: python2.7

    Just using the example with default (google shortner) - i.e.

    shortener = Shortener('GoogleShortener', api_key=goog_api_key) print "My short url is {}".format(shortener.short('http://stackoverflow.com'))

    opened by jalsco 16
  • Update bitly API from 3 to 4

    Update bitly API from 3 to 4

    This PR updates the api calls to the new v4 ones and keeps existing behavior intact the examples in the doc string have also been corrected

    opened by Jan200101 14
  • [Enhancement] Needs more URL shortening services

    [Enhancement] Needs more URL shortening services

    With some URL shortening services shutting down, there is a need for more functional shortening services within the project.

    To get started:

    • Research services that have a get/post request API
    • Check the documentation to incorporate your new service
    opened by ctrlsam 11
  • issue

    issue

    I cannot create an instance with '## Qr.cx Shortener'

    code:

    from pyshorteners import Shortener
    shortener=Shortener('QrCx')
    shortener.short(url)
    error:
    AttributeError   C:\ProgramData\Anaconda3\lib\site-packages\pyshorteners-0.6.0-py3.6.egg\pyshorteners\shorteners\__init__.py in __init__(self, engine, **kwargs)
         75                 raise UnknownShortenerException(
         76                     'Please enter a valid shortener.'
    ---> 77                     ' {} class does not exist'.format(self.engine)
         78                 )
         79 
    
    UnknownShortenerException: Please enter a valid shortener. QrCx class does not exist
    
    opened by Pechi77 9
  • Docs update for 1.0

    Docs update for 1.0

    Current docs are outdated and doesn't have all the features included as well. We must update it with the current shorteners implementations together with some examples as well.

    opened by ellisonleao 7
  • module 'pyshorteners' has no attribute 'Shortener'

    module 'pyshorteners' has no attribute 'Shortener'

    Describe the bug While running the example code, I get:

    AttributeError: module 'pyshorteners' has no attribute 'Shortener'
    

    To Reproduce Steps to reproduce the behavior:

    1. sudo pip3 install pyshorteners
    2. sudo pip3 freeze | grep pyshorteners

    pyshorteners==0.6.1

    1. exec 'python3' & run the example code
    Python 3.7.2 (default, Jan 16 2019, 19:49:22) 
    [GCC 8.2.1 20181215 (Red Hat 8.2.1-6)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pyshorteners
    >>> 
    >>> s = pyshorteners.Shortener()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: module 'pyshorteners' has no attribute 'Shortener'
    

    Expected behavior Able to use the Shortener class

    Desktop (please complete the following information):

    • OS: Linux Fedora 29, Python 3.7.2
    opened by subutux 7
  • Generic expander

    Generic expander

    Generic expander added. It's useful when it's necessary to expand any kind of shortened url without checking the source service, even if the url is not shortened. Helps to check valid url's too.

    opened by MaximilianoRios 6
  • Function short for adfly.py seems to have an issue.

    Function short for adfly.py seems to have an issue.

    print "My short url is {}".format(shortener.short(url, uid=12107955, api_key='a87a1a49af0783388e67c3da80eb9f17', type='int')) TypeError: short() got an unexpected keyword argument 'uid'

    opened by gespinal 5
  • Timeout Argument

    Timeout Argument

    Is there a good way to set a timeout argument? I'm currently using the TinyURL Shortener and I'm running into tinyurl not being able to respond in time. I attempted to set a timeout argument, but it seems to get overridden. The specific exception I'm receiving is below.

    HTTPConnectionPool(host='tinyurl.com', port=80): Read timed out. (read timeout=0.5)

    I see there is timeout default set in init.py but I was hoping there was a good process for passing that parameter within my script. Thank you.

    opened by charlesbickel 5
  • ImportError

    ImportError

    I used pip installed, but it tell me ImportError: cannot import name Shortener in Ipython

    opened by axiaoxin 5
  • Tiny.cc shortener fails with exception

    Tiny.cc shortener fails with exception

    Describe the bug Calling the Tiny.cc shortener method as per https://pyshorteners.readthedocs.io/en/latest/apis.html#tiny-cc returns an exception. I have tried the api_key and user using Postman and they work correctly.

    To Reproduce

    >>> import pyshorteners
    >>> url = "http://www.google.com"
    >>> url_shortener = pyshorteners.Shortener(api_key = "********-****-****-****-************", login = "********")
    >>> short_url = url_shortener.tinycc.short(url)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/carlos/.local/lib/python3.6/site-packages/pyshorteners/shorteners/tinycc.py", line 60, in short
        data = response.json()
      File "/home/carlos/.local/lib/python3.6/site-packages/requests/models.py", line 910, in json
        return complexjson.loads(self.text, **kwargs)
      File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
        return _default_decoder.decode(s)
      File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
        obj, end = self.raw_decode(s)
      File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
        return self.scan_once(s, idx=_w(s, idx).end())
    simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    

    Expected behavior 200 OK

    Desktop (please complete the following information):

    • OS: Ubuntu
    • Version 18.04
    • Python: 3.6.9
    opened by carlosgnet 0
Releases(1.0.1)
Astra is a tool to find URLs and secrets.

Astra finds urls, endpoints, aws buckets, api keys, tokens, etc from a given url/s. It combines the paths and endpoints with the given domain and give

Stinger 129 Oct 22, 2021
πŸ”— Generate Phishing URLs πŸ”—

URLer ?? Generate Phishing URLs ?? URLer Table Of Contents General Information Preview Installation Disclaimer Credits Social Media Bug Report General

mrblackx 4 Sep 27, 2021
🌐 URL parsing and manipulation made easy.

furl is a small Python library that makes parsing and manipulating URLs easy. Python's standard urllib and urlparse modules provide a number of URL re

Ansgar Grunseid 2.1k Oct 18, 2021
declutters url lists for crawling/pentesting

uro Using a URL list for security testing can be painful as there are a lot of URLs that have uninteresting/duplicate content; uro aims to solve that.

Somdev Sangwan 253 Oct 19, 2021
A simple, immutable URL class with a clean API for interrogation and manipulation.

purl - A simple Python URL class A simple, immutable URL class with a clean API for interrogation and manipulation. Supports Pythons 2.7, 3.3, 3.4, 3.

David Winterbottom 257 Oct 9, 2021
Have you ever wondered: Where does this link go? The REDLI Tool follows the path of the URL.

Have you ever wondered: Where does this link go? The REDLI Tool follows the path of the URL. It allows you to see the complete path a redirected URL goes through. It will show you the full redirection path of URLs, shortened links, or tiny URLs.

JAYAKUMAR 28 Oct 20, 2021
URL Shortener in Flask - Web service using Flask framework for Shortener URLs

URL Shortener in Flask Web service using Flask framework for Shortener URLs Install Create Virtual env $ python3 -m venv env Install requirements.txt

Rafnix Guzman 1 Sep 21, 2021
A python code for url redirect check

A python code for url redirect check

Fayas Noushad 1 Oct 24, 2021
python3 flask based python-url-shortener microservice.

python-url-shortener This repository is for managing all public/private entity specific api endpoints for an organisation. In this case we have entity

Asutosh Parida 1 Oct 18, 2021
A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.

webargs Homepage: https://webargs.readthedocs.io/ webargs is a Python library for parsing and validating HTTP request objects, with built-in support f

marshmallow-code 1.2k Oct 19, 2021
encurtador de links feito com python

curt-link encurtador de links feito com python! instalação Linux: $ git clone https://github.com/bydeathlxncer/curt-link $ cd curt-link $ python3 url.

bydeathlxncer 4 Sep 16, 2021
This is a no-bullshit file hosting and URL shortening service that also runs 0x0.st. Use with uWSGI.

This is a no-bullshit file hosting and URL shortening service that also runs 0x0.st. Use with uWSGI.

mia 1.5k Oct 25, 2021
A url redirect status check module for python

A url redirect status check module for python

Fayas Noushad 2 Oct 24, 2021
C++ library for urlencode.

liburlencode C library for urlencode.

Khaidi Chu 4 Jul 1, 2021
A URL builder for genius :D

genius-url A URL builder for genius :D Usage from gurl import genius_url

κŒ—α–˜κ’’κ€€κ“„κ’’κ€€κˆ€κŸ 12 Aug 14, 2021
a url shortener project from semicolonworld

Url Shortener With Django Written by Semicolon World

null 3 Aug 24, 2021
A tool programmed to shorten links/mask links

A tool programmed to shorten links/mask links

Anontemitayo 3 Oct 19, 2021