emndk Posted November 11, 2016 Share Posted November 11, 2016 Does someone have any idea about how to list the shortened links in ones goo.gl account, just like, when you use goo.gl ? Makes sense? Link to comment
emndk Posted November 11, 2016 Share Posted November 11, 2016 On 8/24/2016 at 6:54 PM, jenz said: Perhaps someone has already pointed this out, but in case not... The way I got the Google shorter to start working again, was to generate my own API key (you'll need to do that in your Google Developer account — set one up if you need to) and add it to the scripting in this Workflow, as follows: Change this: 0 : {'api_url':'https://www.googleapis.com/urlshortener/v1/url','title':'goo.gl','des':'http://goo.gl/'}, to this: 0 : {'api_url':'https://www.googleapis.com/urlshortener/v1/url?key=YOUR-API-KEY','title':'goo.gl','des':'http://goo.gl/'}, It now works just fine. I also added my own API key to the bit.y and j.mp shorteners. Apparently the API used (by the kind developer of this workflow) was reaching its limit. Now those two services also work again. Thanks by way! This worked perfectly for me as well! Link to comment
James Krill Posted December 9, 2016 Share Posted December 9, 2016 It should also be noted that bitly.com is moving towards Oauth - so you can use this url for api_url instead: https://api-ssl.bitly.com/v3/shorten?format=json&access_token=ACCESS_TOKEN&longUrl= or this one for j.mp: https://api-ssl.bitly.com/v3/shorten?format=json&access_token=ACCESS_TOKEN&domain=j.mp&longUrl= Where "ACCESS_TOKEN" is an access token generated here: https://bitly.com/a/oauth_apps Link to comment
Giuseppe A Posted December 29, 2016 Share Posted December 29, 2016 I have installed the "shorten" workflow which fails to shorten links by using "goo.nl" (screenshot attached). It says the link is being copied to clipboard but it's blank. Do you know what the problem might be? Link to comment
Semih Posted January 12, 2017 Share Posted January 12, 2017 On 12/29/2016 at 4:21 PM, Giuseppe A said: I have installed the "shorten" workflow which fails to shorten links by using "goo.nl" (screenshot attached). It says the link is being copied to clipboard but it's blank. Do you know what the problem might be? I agree with you man, cant seem to get google work. Link to comment
iNinja Posted February 18, 2017 Share Posted February 18, 2017 Ditto on google short url isn't working. Link to comment
politicus Posted September 7, 2017 Share Posted September 7, 2017 For an alternative Google url shortener https://github.com/kopepasah/alfred-google-url-shortener Link to comment
iNinja Posted March 20, 2018 Share Posted March 20, 2018 (edited) It appears the author has forgotten to include his API key for the Google url shortener. I've created a patch for the author. Hopefully he'll accept my patch and release it on the official channel. For those who want the patch now, here's the link. Please note: This release contains the MIT License that is passed on from the Author and covers all legal matter regarding warranty and any loss or damage. By using this release, you agree to these terms. Edited March 20, 2018 by iNinja Link to comment
Justinrr Posted July 16, 2018 Share Posted July 16, 2018 Thanks!!! This works great out of the box. The original version 1.1 didn't work, but the link to v1.5 on developer's GitHub page did: https://github.com/hzlzh/Alfred-Workflows/raw/master/Downloads/Shorten-URL.alfredworkflow Link to comment
ReinaSuo Posted December 15, 2018 Share Posted December 15, 2018 Great workflow if It does work well with mine. All I get is blank.😭 I am not a programmer. Who can help me? Link to comment
Erdamski Posted October 31, 2019 Share Posted October 31, 2019 On 3/16/2013 at 12:04 PM, michelb said: Thank you. I just changed the API Key and the Login so I see my shortened URLs at bit.y coudl you tell me how? Link to comment
cassiano Posted August 5, 2020 Share Posted August 5, 2020 @hzlzh , would it be possible to create a shortener with this shortener: https://urlnet.xyz ? Link to comment
Klaus Posted March 16, 2022 Share Posted March 16, 2022 (edited) @hzlzh would it be possible to update the workflow to python 3 as with Monterey 12.3 python 2 is history? Much appreciated and THX! 👍 Edited March 16, 2022 by Klaus Link to comment
vitor Posted March 16, 2022 Share Posted March 16, 2022 @Klaus Follow the official guide and this will work again. Link to comment
KopperHead Posted April 7, 2022 Share Posted April 7, 2022 How do I get this WF to work on Monterey OSX with Python 3? Link to comment
KopperHead Posted April 7, 2022 Share Posted April 7, 2022 On 3/16/2022 at 8:29 AM, vitor said: @Klaus Follow the official guide and this will work again. Reinstalling python 2 on the newer Mac ecosystem is not an acceptable solution for a paid product. Link to comment
xilopaint Posted April 12, 2022 Share Posted April 12, 2022 On 4/7/2022 at 3:37 PM, KopperHead said: Reinstalling python 2 on the newer Mac ecosystem is not an acceptable solution for a paid product. Workflows are not paid products. nicola.efflandrin 1 Link to comment
KopperHead Posted April 12, 2022 Share Posted April 12, 2022 20 hours ago, xilopaint said: Workflows are not paid products. Fair enough, but this application's power pack is a paid product, only for MAC OS no less. Following deprecation of PHP and Python2, we have to do what exactly to get said workflows to work? Patch patches? Link to comment
xilopaint Posted April 12, 2022 Share Posted April 12, 2022 8 minutes ago, KopperHead said: Fair enough, but this application's power pack is a paid product, only for MAC OS no less. Following deprecation of PHP and Python2, we have to do what exactly to get said workflows to work? Patch patches? If you don't want to reinstall Python 2 and follow the guidelines recommended by @vitoryou should ask the creator for a port to Python 3 or do it yourself. Link to comment
KopperHead Posted April 12, 2022 Share Posted April 12, 2022 2 minutes ago, xilopaint said: If you don't want to reinstall Python 2 and follow the guidelines recommended by @vitoryou should ask the creator for a port to Python 3 or do it yourself. Awesome, thanks for all the help. Link to comment
nilblank Posted September 13, 2022 Share Posted September 13, 2022 Hi, All of a sudden the Shorten-URL workflow is coughing up an error when I try to run it. Can someone help me figure out what has changed and how to fix it? Link to comment
vitor Posted September 13, 2022 Share Posted September 13, 2022 Welcome @nilblank, As per my comment above, follow the official guide and this will work again. But for anyone looking to shorten URLs, you can do it easily and without code with Automation Tasks—in the URL Processing group there is one to shorten URLs. Rad 1 Link to comment
Rad Posted December 15, 2022 Share Posted December 15, 2022 (edited) On 9/13/2022 at 7:20 PM, vitor said: Welcome @nilblank, As per my comment above, follow the official guide and this will work again. But for anyone looking to shorten URLs, you can do it easily and without code with Automation Tasks—in the URL Processing group there is one to shorten URLs. Hey, just wanted to say that as you suggested and as a total noob I was able to create a URL Shortener using Automation Tasks. It took me a little bit of digging to get it to work but let's say I'm proud of myself haha. Thanks for the suggestion (If someone want's to create their own, just make sure you choose "Argument required" in the Keyword window) 1. In Alfred Preferences, go to the Workflows section 2. choose Create a new workflow 3. If not automatically opened, click on the top right hand colourful burger 4. Drop the Keyword object that they give in the text below and enter the text you want to use as a prompt. Choose "Argument required" to the right 5. In the Automation section, drag the Automation Task object to the board and double click it to open it. 6. Under URL processing, choose Shorten URL 7. In the Output section, choose Copy to clipboard. 8. Link the 3 objets Keyword -> Automation Task -> Copy to Clipboard 9. Success To use it: - copy a URL you want to shorten - Invoque Alfre - type in your prompt then space and paste your URL - The shortened URL will be saved in your clipboard to be pasted. Cheers, Rad Edited December 15, 2022 by Rad vitor and jenz 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now