urlExpander icon indicating copy to clipboard operation
urlExpander copied to clipboard

🌬️urlExpander is a Python package for expanding shortened links (urls).

Results 9 urlExpander issues
Sort by recently updated
recently updated
newest added

As title, basically - some shortened URLs via Skimlinks are correctly expanded, but others return the root URL and then __CLIENT_ERROR__. The troublesome URL that I noticed this with: https://fave.co/3O64Jh9...

``` >>> urlexpander.is_short('https://act.gp/3F0yNFg')` >>> False ``` ``` >>> urlexpander.expand('https://act.gp/3F0yNFg') >>> 'https://action.greenpeace.org.uk/no-more-offsets?source=WA&subsource=NBRENAPEWA034K&utm_source=Whatsapp&utm_medium=Thank+you+page+share&utm_campaign=Shell+-+No+More+Offsets+-+Reactive+Lead+Gen+PE+20211027&utm_term=' ``` A quick check in the constant file confirmed that it is indeed not listed.

`>>> import urlexpander` `>>> urlexpander.expand('https://ouo.io/Pym96q')` `https://ouo.io/Pym96q` Does anyone have good advise?

Many t.co URLs are no longer expanding properly when using urlexpander: ``` >>> import urlexpander >>> urlexpander.expand("https://t.co/lbopTtfmJG") 'http://twitter.com/__CLIENT_ERROR__' ``` Do you know why it's giving me `__CLIENT_ERROR__`?

This kind of urls are not correctly expanded https://ali.ski/L5xG-b If you use "head" internally this could be the reason

- [ ] SPIKE: Test coverage, what else needs to be covered - [ ] Add existing tests to Travis - [ ] Increase test coverage

1. Fix a syntax error. 2. Add `short_domain_media` to the `all_short_domains` constant.