Jump to content

kentmoney

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by kentmoney

  1. 4 hours ago, johanalfred said:

     

    Great, I didn't know that. I'll try to find time to update the workflow. I'm newbie in making Alfred workflows, especially for other users. How is it typically done to ask user to input a key?

     

     

    It's not possible using Oxford Dictionary API and it supports searching one word in the dictionary only. I'd suggest using this website

     

    Maybe I can make it work with multiple words using this. But that's for another day.

     

    Yes, that would be very cool! 

  2. Hello!

     

    I am having an issue with this workflow.  I got this error:


     

    2019-10-23 23:35:05][ERROR: action.script] Traceback (most recent call last):
    
      File "<string>", line 3, in <module>
    
      File "refresh_devices.py", line 28, in refresh_devices
    
        response = urllib2.urlopen(req)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    
        return opener.open(url, data, timeout)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    
        response = meth(req, response)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    
        'http', request, response, code, msg, hdrs)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    
        return self._call_chain(*args)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    
        result = func(*args)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    
    urllib2.HTTPError: HTTP Error 403: Forbidden
    
    [2019-10-23 23:35:08][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
    
      File "<string>", line 3, in <module>
    
      File "device_collector.py", line 18, in device_collector
    
        command = args[-2]
    
    IndexError: list index out of range
    

     

    Any help appreciated!

  3. On 7/11/2019 at 3:59 AM, johanalfred said:

    Five years later, if you still need this, I just made one. Note that you need to get your own free API from Oxford Dictionary (max 1000 requests per month for prototype), and then replace the application ID and key with yours.

    Hello

     

    For some reason this is not working for me.  I replaced the ID and key in the main.py file as stated, but it still doesnt work.  Any ideas?

×
×
  • Create New...