Jump to content

hollowm4n

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by hollowm4n

  1. It's working fine for me. What are you searching for? If it's under three characters the search won't be executed anymore. If that's not the problem, please change the command in the workflow to "python its.py '{query}' 2>&1 | tee output.log" and post what output.log shows.

     

    Here is the log:

     

     

    Traceback (most recent call last):
      File "its.py", line 3, in <module>
        import PyAl
      File "/Users/christophe/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EA4B5E15-822A-41B9-A595-FE41EAAB4526/PyAl/__init__.py", line 1, in <module>
        from .core import *
      File "/Users/christophe/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EA4B5E15-822A-41B9-A595-FE41EAAB4526/PyAl/core.py", line 9, in <module>
        import requests_cache
      File "/Users/christophe/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EA4B5E15-822A-41B9-A595-FE41EAAB4526/PyAl/requests_cache/__init__.py", line 28, in <module>
        from .core import(
      File "/Users/christophe/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.EA4B5E15-822A-41B9-A595-FE41EAAB4526/PyAl/requests_cache/core.py", line 18, in <module>
        from requests import Request
    ImportError: No module named requests

     

    :)

  2. Well, in spite of my skepticism, David was naturally correct: waiting until a few characters have been typed seems to greatly improve the perceived speed of the search. Let me know if it looks that way on your end. I've also changed the "app" query so that it searches for both iOS and Mac apps, and reworked the code to take advantage of PyAl. You can download it at the original link above or here: http://d.pr/f/XEwn

     

    Edit: Further updated to reflect some changes in PyAl, it now appears to be just blazingly fast on my end. Hope you're all noticing similar improvements.

     

    Edit Edit: However, the bundled libraries have made it too large for AlfPT, so keep an eye on this thread for further updates.

     

    I'm not getting any results after installing this update. It keeps 'Searching...' 

  3. Hey,

     

    Installing a new workflow does not give the query text either. I am sure this used to work before. I was able to force update workflows a few days ago but now I'm not getting any result fed back to alfred.

     

    Terminal output:

     

    PING tom-hunt.co.uk (86.156.222.151): 56 data bytes
    64 bytes from 86.156.222.151: icmp_seq=0 ttl=47 time=41.511 ms
    64 bytes from 86.156.222.151: icmp_seq=1 ttl=47 time=61.716 ms
    64 bytes from 86.156.222.151: icmp_seq=2 ttl=47 time=41.299 ms
    64 bytes from 86.156.222.151: icmp_seq=3 ttl=47 time=47.284 ms
    64 bytes from 86.156.222.151: icmp_seq=4 ttl=47 time=45.962 ms
    64 bytes from 86.156.222.151: icmp_seq=5 ttl=47 time=58.768 ms
    64 bytes from 86.156.222.151: icmp_seq=6 ttl=47 time=45.590 ms
    64 bytes from 86.156.222.151: icmp_seq=7 ttl=47 time=43.623 ms
    64 bytes from 86.156.222.151: icmp_seq=8 ttl=47 time=43.501 ms
    64 bytes from 86.156.222.151: icmp_seq=9 ttl=47 time=43.672 ms
    64 bytes from 86.156.222.151: icmp_seq=10 ttl=47 time=47.099 ms
    64 bytes from 86.156.222.151: icmp_seq=11 ttl=47 time=41.911 ms
    64 bytes from 86.156.222.151: icmp_seq=12 ttl=47 time=43.759 ms
    64 bytes from 86.156.222.151: icmp_seq=13 ttl=47 time=44.503 ms
    ^C
    --- tom-hunt.co.uk ping statistics ---
    14 packets transmitted, 14 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 41.299/46.443/61.716/5.939 ms
     
    Cheers :)
  4. Very nice, thanks!

     

    I added another Open URL action and set the it to open articles in my native language, Danish. Then, I added this as another action for the script filter and assigned a modifier key to it so I can choose to open the article in English or Danish. Just though I would share this "tip".

     

     

    The problem with this approach is that if the article in your language has a different name it will not work. 

    I added a second workflow and modified the python to search the articles in dutch. Both workflows use the same keyword. This will give you results in both languages. The only issue with this approach is that I'm getting 2 dutch results on top, then several english results and afterwards the dutch results continue.

     

    Schermafbeelding%202013-01-14%20om%2015.

×
×
  • Create New...