Giter VIP home page Giter VIP logo

searchcmd's People

Contributors

jimmyppi avatar tomislater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

searchcmd's Issues

User can't use phrase "http whatever"

Here is the example:

╰─➤  ./Library/Python/2.7/bin/searchcmd python "http server"                                                                                                                                                   1 ↵
Traceback (most recent call last):
  File "./Library/Python/2.7/bin/searchcmd", line 9, in <module>
    load_entry_point('searchcmd==0.1.0', 'console_scripts', 'searchcmd')()
  File "/Users/tomek/Library/Python/2.7/lib/python/site-packages/searchcmd/__init__.py", line 77, in main
    commands = search(**search_args)
  File "/Users/tomek/Library/Python/2.7/lib/python/site-packages/searchcmd/__init__.py", line 144, in search
    urls = engine.get_hits(search_result)
  File "/Users/tomek/Library/Python/2.7/lib/python/site-packages/searchcmd/search_engines.py", line 85, in get_hits
    url = self.get_outgoing_url(link)
  File "/Users/tomek/Library/Python/2.7/lib/python/site-packages/searchcmd/search_engines.py", line 70, in get_outgoing_url
    u = Url(url)
  File "/Users/tomek/Library/Python/2.7/lib/python/site-packages/searchcmd/download.py", line 112, in __init__
    self.base_domain = tld.get_tld(self.url)
  File "/Users/tomek/Library/Python/2.7/lib/python/site-packages/tld/utils.py", line 172, in get_tld
    raise TldBadUrl(url=url)
tld.exceptions.TldBadUrl: Is not a valid URL http+server!

Arguments in search query are not allowed

First of all want to clarify either this is bug or not. When I try to search something with argument in parentheses ArgumentParser recognises it like argument to searchcmd itself. It is ok?

searchcmd docker run "-P"

searchcmd: error: unrecognized arguments: -P

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.