jimmyppi / searchcmd Goto Github PK
View Code? Open in Web Editor NEWSearch the internets for commands from the command line.
License: BSD 3-Clause "New" or "Revised" License
Search the internets for commands from the command line.
License: BSD 3-Clause "New" or "Revised" License
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!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.